so you mean i have to put some content in it and only then it will be
visilble? even if this is true, it's still a bug - albeit with a much
lower severity...
i'll check it out and report back in a few.

On Apr 30, 5:10 pm, Romain Guy <[email protected]> wrote:
> Do what the exception says:
>
> "java.lang.IllegalArgumentException: The handle attribute is required
> and must refer to a valid child."
>
> You need to define the widget to use as the handle of the drawer.
>
>
>
> On Thu, Apr 30, 2009 at 2:02 PM, Sheepz <[email protected]> wrote:
>
> > when adding a slidingDrawer object to my application, i got this error
> > when trying to display it on the main.xml layout view
> > i used that view to create it as the bottommost component, and
> > immediatly got this message in the console window and the layout
> > stopped showing.
> > here is the exception:
> > java.lang.IllegalArgumentException: The handle attribute is required
> > and must refer to a valid child.
> >        at android.widget.SlidingDrawer.<init>(SlidingDrawer.java:203)
> >        at android.widget.SlidingDrawer.<init>(SlidingDrawer.java:180)
> >        at sun.reflect.NativeConstructorAccessorImpl.newInstance0
> > (Native
> > Method)
> >        at sun.reflect.NativeConstructorAccessorImpl.newInstance
> > (Unknown
> > Source)
> >        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
> > (Unknown
> > Source)
> >        at java.lang.reflect.Constructor.newInstance(Unknown Source)
> >        at android.view.LayoutInflater.createView(LayoutInflater.java:
> > 499)
> >        at android.view.BridgeInflater.onCreateView
> > (BridgeInflater.java:77)
> >        at android.view.LayoutInflater.createViewFromTag
> > (LayoutInflater.java:
> > 562)
> >        at android.view.BridgeInflater.createViewFromTag
> > (BridgeInflater.java:
> > 122)
> >        at android.view.LayoutInflater.rInflate(LayoutInflater.java:
> > 617)
> >        at android.view.LayoutInflater.inflate(LayoutInflater.java:
> > 407)
> >        at android.view.LayoutInflater.inflate(LayoutInflater.java:
> > 296)
> >        at com.android.layoutlib.bridge.Bridge.computeLayout
> > (Bridge.java:371)
> >        at
> > com.android.ide.eclipse.editors.layout.GraphicalLayoutEditor.computeLayout
> > (Unknown Source)
> >        at
> > com.android.ide.eclipse.editors.layout.GraphicalLayoutEditor.recomputeLayout
> > (Unknown Source)
> >        at com.android.ide.eclipse.editors.layout.GraphicalLayoutEditor
> > $2.run
> > (Unknown Source)
> >        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:
> > 35)
> >        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages
> > (Synchronizer.java:133)
> >        at org.eclipse.swt.widgets.Display.runAsyncMessages
> > (Display.java:
> > 3800)
> >        at org.eclipse.swt.widgets.Display.readAndDispatch
> > (Display.java:3425)
> >        at org.eclipse.ui.internal.Workbench.runEventLoop
> > (Workbench.java:
> > 2384)
> >        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:
> > 2348)
> >        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:
> > 2200)
> >        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
> >        at
> > org.eclipse.core.databinding.observable.Realm.runWithDefault
> > (Realm.java:288)
> >        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
> > (Workbench.java:490)
> >        at org.eclipse.ui.PlatformUI.createAndRunWorkbench
> > (PlatformUI.java:
> > 149)
> >        at
> > org.eclipse.ui.internal.ide.application.IDEApplication.start
> > (IDEApplication.java:113)
> >        at org.eclipse.equinox.internal.app.EclipseAppHandle.run
> > (EclipseAppHandle.java:193)
> >        at
> > org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication
> > (EclipseAppLauncher.java:110)
> >        at
> > org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
> > (EclipseAppLauncher.java:79)
> >        at org.eclipse.core.runtime.adaptor.EclipseStarter.run
> > (EclipseStarter.java:386)
> >        at org.eclipse.core.runtime.adaptor.EclipseStarter.run
> > (EclipseStarter.java:179)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > Source)
> >        at java.lang.reflect.Method.invoke(Unknown Source)
> >        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:
> > 549)
> >        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> >        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>
> --
> Romain Guy
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to