You should not use wrap_content width in this case. If you do, then it the text is long, the textview will automatically expand. Try giving it a fixed width, and use marquee or elipsize.
Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Jun 29, 5:17 pm, elubin <[email protected]> wrote: > I have a ListView and would like each row to have text on the left and > text on the right. I have included the layout for the row below. It > appears fine if the left text is short enough, but when the left text > it too large, the right text never appears? > > http://www.elubin.com/images/Capture.jpg > > <?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="wrap_content" > android:orientation="horizontal"> > > <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:padding="4dip"> > > <TextView android:id="@+id/ridelistrow_text1" > android:textSize="18sp" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:gravity="left" /> > > <TextView android:id="@+id/ridelistrow_text2" > android:textSize="18sp" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_toRightOf="@id/ridelistrow_text1" > android:padding="7dip" > android:gravity="right" /> > </RelativeLayout> > > </LinearLayout> -- 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

