you will need to define the handle as well. Take a look at the launcher code for example.
Dan On Thu, Apr 30, 2009 at 2:01 PM, Sheepz <eladk...@gmail.com> 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) > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---