The problem is the number of parents you have. On Wed, Sep 16, 2009 at 11:52 PM, jagtap.jj <[email protected]> wrote: > > Thanks for quick reply > > In list item having four views[2 text views, and 2 buttons]. Is there > any another way, I want to keep 4 views for single list item. Actually > In app I do have another Tab also it also having custom list adapter > and list item also having 4 views(2 TextView and 2 ImageButtons), that > Tab works fine. > > Why does the same list item gets work perfectly on sdk1.1r1 > > On Sep 17, 11:41 am, Romain Guy <[email protected]> wrote: >> You have (way) too many views. Remove a few. Your app will load >> faster, layout faster, draw faster and won't crash. >> >> >> >> On Wed, Sep 16, 2009 at 11:38 PM, jagtap.jj <[email protected]> wrote: >> >> > Hello everybody >> >> > Some serious error >> >> > I am using custom listadapter for ListActivity, but half adapter is >> > getting built and then throws "java.lang.StackOverflowError". >> >> > When I ran the same code on sdk1_1r1 it works perfect. When do i >> > try to run on sdk1_5r3, gives this error. >> > Generally java.lang.StackOverflowError when happens if the some >> > function caught in infinite recursion, but if this is case then why >> > does it working on sdk1.1r1 perfectly. >> >> > I tested the appl on sdk1_5r3 both emulators default AVD(96 RAM) and >> > custom AVD(523 RAM). >> >> > For all try it gives the same error. >> >> > Any suggestion will great help. >> >> > Log Cat: >> >> > 09-17 11:51:22.437: INFO/dalvikvm(880): Stack overflow, expanding >> > (0x41048200 to 0x41048000) >> > 09-17 11:51:22.447: INFO/dalvikvm(880): Shrank stack (to 0x41048200, >> > curFrame is 0x41049cd8) >> > 09-17 11:51:22.507: DEBUG/AndroidRuntime(880): Shutting down VM >> > 09-17 11:51:22.548: WARN/dalvikvm(880): threadid=3: thread exiting >> > with uncaught exception (group=0x4000fe70) >> >> > 09-17 11:03:54.488: ERROR/AndroidRuntime(769): Uncaught handler: >> > thread main exiting due to uncaught exception >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): >> > java.lang.StackOverflowError >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.text.Styled.measureText(Styled.java:371) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.text.Layout.measureText(Layout.java:1600) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.text.Layout.getLineMax(Layout.java:654) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.text.Layout.draw(Layout.java:310) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.text.BoringLayout.draw(BoringLayout.java:356) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.widget.TextView.onDraw(TextView.java:3921) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.View.draw(View.java:5838) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.drawChild(ViewGroup.java:1486) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.drawChild(ViewGroup.java:1484) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.drawChild(ViewGroup.java:1484) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.drawChild(ViewGroup.java:1484) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.drawChild(ViewGroup.java:1484) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.widget.AbsListView.dispatchDraw(AbsListView.java:1319) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.widget.ListView.dispatchDraw(ListView.java:2820) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.View.draw(View.java:5944) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.widget.AbsListView.draw(AbsListView.java:2121) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.drawChild(ViewGroup.java:1486) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.drawChild(ViewGroup.java:1484) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.View.draw(View.java:5841) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.widget.FrameLayout.draw(FrameLayout.java:352) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.drawChild(ViewGroup.java:1486) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.drawChild(ViewGroup.java:1484) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.drawChild(ViewGroup.java:1484) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.drawChild(ViewGroup.java:1484) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.drawChild(ViewGroup.java:1484) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.View.draw(View.java:5841) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.widget.FrameLayout.draw(FrameLayout.java:352) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.drawChild(ViewGroup.java:1486) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.drawChild(ViewGroup.java:1484) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.View.draw(View.java:5841) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.widget.FrameLayout.draw(FrameLayout.java:352) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > com.android.internal.policy.impl.PhoneWindow$DecorView.draw >> > (PhoneWindow.java:1847) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewRoot.draw(ViewRoot.java:1217) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewRoot.performTraversals(ViewRoot.java:1030) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.view.ViewRoot.handleMessage(ViewRoot.java:1482) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.os.Handler.dispatchMessage(Handler.java:99) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.os.Looper.loop(Looper.java:123) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > android.app.ActivityThread.main(ActivityThread.java:3948) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > java.lang.reflect.Method.invokeNative(Native Method) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > java.lang.reflect.Method.invoke(Method.java:521) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run >> > (ZygoteInit.java:782) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) >> > 09-17 11:03:54.597: ERROR/AndroidRuntime(769): at >> > dalvik.system.NativeStart.main(Native Method) >> >> -- >> 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 > > >
-- 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 -~----------~----~----~----~------~----~------~--~---

