я должен создать макет, которые имеют одно изображение и несколько TextView и рейтинг, как это и я должен добавить строку на надувать этот макет с адаптеромLinear Layout с изображением и текстом
| Image| Name of Product |
| Desc |
| Amount |
| EMI details |
| Rating Sybmol total Rating |
Так я попытался создать раскладка как этот
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<LinearLayout
android:id="@+id/mainLinearLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:orientation="horizontal" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/ic_launcher"
android:layout_marginTop="5dp"
android:layout_marginLeft="10dp"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:id="@+id/text"
android:text="Micromax Canvas Spark"
android:textColor="@android:color/black" />
</LinearLayout>
</RelativeLayout>
Но я путаюсь, как я могу создать макет, пожалуйста, помогите мне в этом
вы хотите Изображение, чтобы он оставил и TextViews вправо ли? –
@EugeneH yes и строка для каждой строки в представлении списка, когда я делаю это в виде списка – Developer
Я не слишком уверен, что вы подразумеваете под строкой. –