Hi, I am using Eclipse IDE for developing Android App. In my xml file, <LinearLayout> <frameLayout> <ListView> // </ListView> </frameLayout>
// Here i want to insert Button </LinearLayout> Problem is i can't view in Graphical Layout. i should insert a button.. How can i solve these problem.? When i am clicking Graphical Layout, it shows like: com.android.layoutlib.bridge.impl.binding.FakeAdapter cannot be cast to android.widget.BaseAdapter Exception details are logged in Window > Show View > Error Log In Error Log file: eclipse.buildId=M20110210-1200 java.version=1.6.0_31 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_IN Command-line arguments: -os win32 -ws win32 -arch x86 Error Mon Apr 02 15:04:09 IST 2012 public_lay.xml: com.android.layoutlib.bridge.impl.binding.FakeAdapter cannot be cast to android.widget.BaseAdapter java.lang.ClassCastException: com.android.layoutlib.bridge.impl.binding.FakeAdapter cannot be cast to android.widget.BaseAdapter at android.widget.FastScroller.getSectionsFromIndexer(FastScroller.java: 473) at android.widget.FastScroller.getThumbPositionForListPosition(FastScroller.java: 591) at android.widget.FastScroller.onScroll(FastScroller.java:421) at android.widget.AbsListView.invokeOnItemScrollListener(AbsListView.java: 1247) at android.widget.ListView.layoutChildren(ListView.java:1689) at android.widget.AbsListView.onLayout(AbsListView.java:1794) at android.view.View.layout(View.java:9330) at android.view.ViewGroup.layout(ViewGroup.java:3795) at android.widget.FrameLayout.onLayout(FrameLayout.java:400) at android.view.View.layout(View.java:9330) at android.view.ViewGroup.layout(ViewGroup.java:3795) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1542) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1403) at android.widget.LinearLayout.onLayout(LinearLayout.java:1314) at android.view.View.layout(View.java:9330) at android.view.ViewGroup.layout(ViewGroup.java:3795) at android.widget.FrameLayout.onLayout(FrameLayout.java:400) at android.view.View.layout(View.java:9330) at android.view.ViewGroup.layout(ViewGroup.java:3795) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1542) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1403) at android.widget.LinearLayout.onLayout(LinearLayout.java:1314) at android.view.View.layout(View.java:9330) at android.view.ViewGroup.layout(ViewGroup.java:3795) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1542) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1403) at android.widget.LinearLayout.onLayout(LinearLayout.java:1314) at android.view.View.layout(View.java:9330) at android.view.ViewGroup.layout(ViewGroup.java:3795) at com.android.layoutlib.bridge.impl.RenderSessionImpl.render(RenderSessionImpl.java: 458) at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:323) at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java: 325) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderService.createRenderSession(RenderService.java: 372) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.renderWithBridge(GraphicalEditorPart.java: 1323) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.recomputeLayout(GraphicalEditorPart.java: 1077) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.activated(GraphicalEditorPart.java: 903) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.pageChange(LayoutEditor.java: 399) at org.eclipse.ui.part.MultiPageEditorPart $2.widgetSelected(MultiPageEditorPart.java:290) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java: 234) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774) at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java: 2743) at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1429) at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java: 257) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java: 4066) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java: 2640) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java: 332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java: 664) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java: 149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java: 115) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java: 196) 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: 369) 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:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) Plz help me... -- 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