Mike wrote: > I have a problem with Android 1.5 (problem that didn't appear in 1.1 > and earlier): > > This TextView is in RelativeLayout: > <TextView android:id="@+id/list_item_name" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Some Text" > android:textColor="@color/black" > android:layout_toRightOf="@id/list_item_marker" > android:layout_marginLeft="8dip" > android:layout_marginTop="5dip" > android:textSize="@dimen/ts_item_top" > android:paddingRight="70dip" > /> > > Layout is filled and used inside ListView programmatically. > > Whenever I have text that should be wrapped to multiple lines, this > exception raises:
<snip> > 05-06 14:44:22.360: ERROR/AndroidRuntime(1009): > java.lang.StackOverflowError How deep and complicated is your view hierarchy? With Android 1.5, I get the sense that StackOverflowError will be triggered by a too-complex set of views, particularly in terms of depth. You can use hierarchyviewer (in the tools/ of your SDK) to see how many layers you have -- if you're in double digits on the deepest branch, you might need to find ways to simplify the UI. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

