Hi ,

   Thanks for your replay.

  I am getting the following in the logcat.

  D/AndroidRuntime( 2624): Shutting down VM
W/dalvikvm( 2624): threadid=3: thread exiting with uncaught exception
(group=0x4001b180)
E/AndroidRuntime( 2624): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime( 2624): java.lang.RuntimeException: SlidingDrawer
cannot have UNSPECIFIED dimensions
E/AndroidRuntime( 2624):        at
android.widget.SlidingDrawer.onMeasure(SlidingDrawer.java:261)
E/AndroidRuntime( 2624):        at android.view.View.measure(View.java:7983)
E/AndroidRuntime( 2624):        at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3023)
E/AndroidRuntime( 2624):        at
android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
E/AndroidRuntime( 2624):        at android.view.View.measure(View.java:7983)
E/AndroidRuntime( 2624):        at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3023)
E/AndroidRuntime( 2624):        at
android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
E/AndroidRuntime( 2624):        at android.view.View.measure(View.java:7983)
E/AndroidRuntime( 2624):        at
android.widget.LinearLayout.measureHorizontal(LinearLayout.java:602)
E/AndroidRuntime( 2624):        at
android.widget.LinearLayout.onMeasure(LinearLayout.java:280)
E/AndroidRuntime( 2624):        at android.view.View.measure(View.java:7983)
E/AndroidRuntime( 2624):        at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3023)
E/AndroidRuntime( 2624):        at
android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:
888)
E/AndroidRuntime( 2624):        at
android.widget.LinearLayout.measureVertical(LinearLayout.java:350)
E/AndroidRuntime( 2624):        at
android.widget.LinearLayout.onMeasure(LinearLayout.java:278)
E/AndroidRuntime( 2624):        at android.view.View.measure(View.java:7983)
E/AndroidRuntime( 2624):        at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3023)
E/AndroidRuntime( 2624):        at
android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
E/AndroidRuntime( 2624):        at android.view.View.measure(View.java:7983)
E/AndroidRuntime( 2624):        at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3023)
E/AndroidRuntime( 2624):        at
android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
E/AndroidRuntime( 2624):        at android.view.View.measure(View.java:7983)
E/AndroidRuntime( 2624):        at
android.view.ViewRoot.performTraversals(ViewRoot.java:763)
E/AndroidRuntime( 2624):        at
android.view.ViewRoot.handleMessage(ViewRoot.java:1633)
E/AndroidRuntime( 2624):        at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2624):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 2624):        at
android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime( 2624):        at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2624):        at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 2624):        at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 2624):        at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime( 2624):        at dalvik.system.NativeStart.main(Native
Method)
I/Process ( 1098): Sending signal. PID: 2624 SIG: 3
I/dalvikvm( 2624): threadid=7: reacting to signal 3

Thanks in advance.


On Jul 27, 9:49 pm, DanH <danhi...@ieee.org> wrote:
> You need to provide the full stack trace, back to the origin of the
> exception that triggered the RunTimeException.  Then the cause is
> usually fairly obvious, or at least you have a good start on debugging
> it.
>
> On Jul 27, 9:42 am, pnk444 <sivareddy.ra...@gmail.com> wrote:
>
>
>
> > Hi,
>
> >    I have used sliding drawer in my code as follows.
>
> > <LinearLayout android:layout_width="fill_parent"
> > android:layout_height="fill_parent" android:orientation="vertical">
> >    <FrameLayout android:layout_width="fill_parent"
> > android:layout_height="wrap_content"
> > android:measureAllChildren="true">
> >    //Some views here
> > </FrameLayout>
>
> > <LinearLayout android:layout_width="fill_parent"
> >                  android:layout_height="wrap_content"
> >                  android:layout_weight="1"
> >                  android:orientation="horizontal">
>
> >      <LinearLayout android:layout_height="fill_parent"
> >                                  android:layout_width="0dip"
> >                                  android:layout_weight="1"
> >                                  android:orientation="vertical"
> >                                  >
> >    //Some views here
> >    </LinearLayout>
>
> >     <LinearLayout android:layout_height="fill_parent"
> >                                  android:layout_width="0dip"
> >                                  android:layout_weight="1"
> >                                  android:orientation="vertical"
> >                                  >
> >  <FrameLayout android:layout_width="fill_parent"
> > android:layout_height="fill_parent" android:measureAllChildren="true">
> >   <FrameLayout android:layout_width="fill_parent"
> > android:layout_height="fill_parent" android:id="@+id/keypad_drawer"
> > android:visibility="gone">
>
> > <SlidingDrawer android:id="@+id/dtmf_container"
> > android:layout_width="fill_parent" android:layout_height="fill_parent"
> > android:handle="@+id/dialer_tab" android:content="@+id/dtmf_dialer"
> > android:allowSingleTap="false">
> > //Content and handle are here
> >  </SlidingDrawer>
> >  </FrameLayout
> > </FrameLayout>>
> >  </LinearLayout>
> > </LinearLayout>
>
> > When i set this as content i am getting RunTime Exception in
> > SlidingDrarwer onMeasure!.
>
> >   How can i prevent RunTimeException?
> >   Where am i  doing  wrong?
>
> > Thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to