Я хочу создать представление списка, которое содержит изображение, 2 просмотра текста и одну кнопку. Как в этом формате
Textview1
image Textview2 Button
в указанном выше формате я создал еще один макет. Теперь я хочу накачать этот макет на listview. Изображения говорят, что у меня есть 6 изображений в папке для рисования, названной как image_1, image_2, image_3, image_4, image_5, image-6.
Я не могу понять из примеров, которые я нашел в Google.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:src="@drawable/stub"
android:layout_height="50sp" android:layout_width="100sp" android:id="@+id/image"
android:layout_alignParentTop="true" android:layout_alignParentLeft="true"></ImageView>
<Button android:layout_height="wrap_content"
android:layout_width="wrap_content" android:text="ADD" android:id="@+id/badd"
android:layout_alignBottom="@+id/textView2"
android:layout_alignParentRight="true" android:layout_marginRight="15dp"></Button>
<TextView android:layout_height="wrap_content" android:id="@+id/tvname" android:textAppearance="?android:attr/textAppearanceMedium" android:layout_width="wrap_content" android:text="TextView" android:layout_alignParentTop="true" android:layout_centerHorizontal="true"></TextView>
<TextView android:layout_height="wrap_content" android:id="@+id/tvprice" android:layout_width="wrap_content" android:text="TextView" android:layout_alignBottom="@+id/image" android:layout_centerHorizontal="true"></TextView>
Пожалуйста, предоставьте мне код Android для достижения этой цели.