I'm trying to achieve a two rows on the left with a floating (right) TextView which will have a number. This is a listview item layout.
____
___________________________ | |
___________________________ |____|
So contents would be something like
LINE ONE CAN SOMETIMES BE LONG £2000.00
line two
However the £2000.00 (which is larger text size) is either overlapped with code sample below or by using android:layout_toRightOf="@+id/row1"
it's basically sitting next to row1 and sometimes goes on next line if row1 is long. It should always be in one line.
Can anyone help?
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="6dp" >
<TextView
android:id="@+id/row1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="bold" />
<TextView
android:id="@+id/rightcol"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:textColor="#cc0000"
android:textSize="22dp" />
<TextView
android:id="@+id/row2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/row1" />
</RelativeLayout>
With this the right column text overlaps row1
Thanks for checking