У меня есть следующая очень базовая раскладка для каждой строки ListView
. Два TextViews
должны быть один поверх другого или, другими словами, в две строки или около того. Тем не менее, я вижу их в одной строке или не вижу их вообще. Также иногда я вижу, что высота рядов очень большая. Может кто-нибудь сказать мне, в чем проблема с моим макетом?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="100px" >
<ImageView
android:id="@+id/icon"
android:layout_width="60px"
android:layout_height="45px"
android:layout_marginLeft="4px"
android:layout_marginRight="4px"
android:layout_marginTop="4px"
android:src="@drawable/ahsan" >
</ImageView>
<TextView
android:id="@+id/label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_x="70px"
android:layout_y="60px"
android:text="@+id/TextView01"
android:textSize="18px" >
</TextView>
<TextView
android:id="@+id/label2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_x="70px"
android:layout_y="90px"
android:text="@+id/TextView02"
android:textSize="18px" >
</TextView>
</LinearLayout>