I have made a listView and want to put the same image beside each line of text. Is there a simple way of doing this. I have tried a number of things and none seem to have worked as it doesn't put the image beside each line of text.
<RelativeLayout android:id="@+id/RelativeLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_below="@+id/textView"> <LinearLayout android:id="@+id/LinearLayout01" android:layout_width="580dp" android:layout_height="fill_parent" android:orientation="vertical" > <LinearLayout android:id="@+id/list_item9" android:layout_width="wrap_content" android:layout_height="362dp" android:layout_marginLeft="80dp" android:layout_below="@+id/list_item" android:background="#555454" android:layout_centerHorizontal="true" android:layout_centerInParent="true" android:gravity="center_vertical" android:layout_marginTop="40dp" > <ListView android:id="@+id/zone_list" android:layout_width="200dp" android:layout_height="400dp" android:layout_below="@+id/textView" android:layout_alignParentRight="true" android:layout_alignParentEnd="true" android:layout_marginTop="39dp" > </ListView> <!-- Put line under text --> </LinearLayout>
No comments:
Post a Comment