[android-developers] Re: Custom ListView complex item does not appear correctly

2010-07-08 Thread Tudor Tihan
Thanks Kostya, This worked well in all orientations and all the device sizes I tried! __ http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="fill_parent">

Re: [android-developers] Re: Custom ListView complex item does not appear correctly

2010-07-07 Thread Kostya Vasilyev
Tudor, You should try using a RelativeLayout as the only Layout tag in the list item. It's certainly powerful enough to arrange both text and image the way you intend. Off top of my head: For the TextView - layout_alignParentLeft="true" layout_width="wrap_content" and margins, if any For t

[android-developers] Re: Custom ListView complex item does not appear correctly

2010-07-07 Thread Tudor Tihan
That partly works. I made the inner layout a relative one and put the alignment of the image as suggested. If I fix the max width of the text item to 285dip then it will look nice in the portrait view. But that means I'd have to make a ton of adjustments for each screen aspect/size. Any way to have