Hi guys and gals, I am having a very difficult time with making complex listview items show properly.
I am using the following layout xml for the item: <code><source> <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TextView android:id="@+id/TextView01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="18dip" android:layout_marginTop="4dip" android:layout_marginBottom="4dip" android:layout_marginLeft="10dip" android:text="sdf asdf asdf sdfghsdf sdfg sdfgsd fsd fgdsfg sdfg sdfg sdfg sdf" android:lines="1"></ TextView> <LinearLayout android:id="@+id/zero_view" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="right| center_vertical"> <ImageButton android:id="@+id/ImageButton01" android:layout_height="wrap_content" android:background="@drawable/double_right_arrow_24x22" android:layout_width="wrap_content"></ImageButton> </LinearLayout> </LinearLayout> </source></code> The idea is to put a text (this item is a child of an expandable list view item) and a simple arrow icon to the right of the item. The problem is that with longer text, the icon doesn't show up, probably having been pushed to the right outside the screen. Is there a way to make sure I can solve this in a device independent way from the layout only? Ideally the text should ellipsize and scroll in the textview, If not possible, then it should cut off a few pixels before the icon. How can I do this. Please help me asap, I am having problems understanding how each layout settings affect the position. Speaking of which, is there a comparison with options for each layout, item position combinations other than the API Demos source code? -- 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