Yes, this is a know issue. The error is just with the layout editor. You can edit the XML as text and test it on the emulator or an actual device.
R/ On Thu, May 28, 2009 at 9:12 PM, RS Android <[email protected]> wrote: > > I have been trying to have a view layout using TabWidget. This is > using Eclipse and Android 1.5. However, anytime I use TabWidget, I get > a NullPointerException in Eclipse. This is even with the sample on > http://developer.android.com/guide/tutorials/views/hello-tabwidget.html. > I saw few threads that mention that TabWidget implementation is very > flaky. > > Has anyone seen similar issue? > > Attached is the stack trace: > java.lang.NullPointerException > at android.widget.TabWidget.dispatchDraw(TabWidget.java:105) > at android.view.ViewGroup.drawChild(ViewGroup.java:1484) > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > at android.view.ViewGroup.drawChild(ViewGroup.java:1484) > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > at android.view.ViewGroup.drawChild(ViewGroup.java:1484) > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > at android.view.View.draw(View.java:5841) > at android.widget.FrameLayout.draw(FrameLayout.java:352) > at com.android.layoutlib.bridge.Bridge.computeLayout(Bridge.java:400) > 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.activated > (Unknown Source) > at com.android.ide.eclipse.editors.layout.LayoutEditor.pageChange > (Unknown Source) > at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected > (MultiPageEditorPart.java:266) > at org.eclipse.swt.widgets.TypedListener.handleEvent > (TypedListener.java:228) > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561) > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585) > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570) > at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360) > at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java: > 3242) > at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2017) > at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java: > 320) > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561) > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585) > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570) > at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360) > at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java: > 3482) > at org.eclipse.swt.widgets.Control.sendTrackEvents(Control.java:3024) > at org.eclipse.swt.widgets.Control.actionProc(Control.java:122) > at org.eclipse.swt.widgets.Display.actionProc(Display.java:362) > at org.eclipse.swt.internal.carbon.OS.CallNextEventHandler(Native > Method) > at org.eclipse.swt.widgets.Widget.kEventControlTrack(Widget.java: > 1106) > at org.eclipse.swt.widgets.Control.kEventControlTrack(Control.java: > 2097) > at org.eclipse.swt.widgets.Widget.controlProc(Widget.java:375) > at org.eclipse.swt.widgets.Display.controlProc(Display.java:862) > at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native > Method) > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3051) > 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 > (NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > 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) > > RS > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

