Android Layout Text at Left and Image at Right

view story

http://stackoverflow.com – I am trying to to make a list where image stay on the right of the layout all the time. At the same time if there is no image I will like the subject text to fill the whole layout. This is what I hope to achieve When Image is Hide With Image Current output: The image at the front on the text. <?xml version="1.0" encoding="UTF-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:padding="6dip" android:layout_height="?android:attr/listPreferredItemHeight"> <TextView android:id="@+id/su (HowTos)