I am using a ListView to create a specialized grid of images. The xml for the list items is: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/cover_art" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal"> <RelativeLayout android:id="@+id/album0" android:layout_width="150dip" android:layout_height="170dip" android:layout_marginLeft="1dip" android:layout_marginTop="1dip" android:background="@drawable/cover_art_background"> <ImageButton android:id="@+id/cover_art0" android:layout_marginTop="10dip" android:layout_width="130dip" android:layout_height="130dip" android:scaleType="fitCenter" android:src="@drawable/mce_logo_small" android:layout_centerHorizontal="true"> </ImageButton> <TextView android:id="@+id/album_title0" android:layout_width="fill_parent" android:layout_height="wrap_content" android:maxLines="1" android:textColor="#000" android:textSize="14dip" android:textStyle="bold" android:gravity="center_horizontal" android:layout_below="@id/cover_art0" android:layout_centerHorizontal="true"> </TextView> </RelativeLayout>
followed by more RelativeLayouts to give a row of items. As you can see, the TextView is set to maxLines="1". This works fine in an Android 2.2 device (EVO), On the Xoom, the only 3.0 device I have available, I am getting the very tops of what would be a second line, if the text is long enough to go to a second line. I have tried android:lines="1" also. The only way I can get rid of the vestigial part of the second line is to change android:layout_height to ="20dip". Sorry, I have not run it on the emulator. Don't ask! -- 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