У меня есть следующий макет.
<TextView
android:id="@+id/item_text"
android:layout_margin="5dip"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/item_text"
android:textColor="#787878"
android:layout_width="wrap_content"
android:textStyle="bold"/>
<TextView
style="@style/CodeFont"
android:id="@+id/item_internet"
android:text="@string/item_internet"
android:layout_below="@id/item_text" />
<ImageView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_toRightOf="@id/item_internet"
android:layout_alignTop="@id/item_internet"
android:id="@+id/internetImage"/>
<TextView
style="@style/CodeFont"
android:id="@+id/item_overnightStay"
android:text="@string/item_overnightStay"
android:layout_below="@id/item_internet"/>
<ImageView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_toRightOf="@id/item_overnightStay"
android:layout_alignTop="@id/item_overnightStay"
android:id="@+id/overnightStayImage"/>
<TextView
style="@style/CodeFont"
android:id="@+id/item_wasteDisposal"
android:text="@string/item_wasteDisposal"
android:layout_below="@id/item_overnightStay" />
<ImageView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_toRightOf="@id/item_wasteDisposal"
android:layout_alignTop="@id/item_wasteDisposal"
android:id="@+id/wasteDisposalImage"/>
<TextView
style="@style/CodeFont"
android:id="@+id/item_toilet"
android:text="@string/item_toilet"
android:layout_below="@id/item_wasteDisposal" />
<ImageView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_toRightOf="@id/item_toilet"
android:layout_alignTop="@id/item_toilet"
android:id="@+id/toiletImage"/>
<TextView
style="@style/CodeFont"
android:id="@+id/item_electricity"
android:text="@string/item_electricity"
android:layout_below="@id/item_toilet"/>
<ImageView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_toRightOf="@id/item_electricity"
android:layout_alignTop="@id/item_electricity"
android:id="@+id/electricityImage"/>
<TextView
style="@style/CodeFont"
android:id="@+id/item_cran"
android:text="@string/item_cran"
android:layout_below="@id/item_electricity"/>
<ImageView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_toRightOf="@id/item_cran"
android:layout_alignTop="@id/item_cran"
android:id="@+id/cranImage"/>
<TextView
style="@style/CodeFont"
android:id="@+id/item_slipway"
android:text="@string/item_slipway"
android:layout_below="@id/item_cran"/>
<ImageView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_toRightOf="@id/item_slipway"
android:layout_alignTop="@id/item_slipway"
android:id="@+id/slipwayImage"/>
<TextView
style="@style/CodeFont"
android:id="@+id/item_camping"
android:text="@string/item_camping"
android:layout_below="@id/item_slipway"/>
<ImageView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_toRightOf="@id/item_camping"
android:layout_alignTop="@id/item_camping"
android:id="@+id/campingImage"/>
<TextView
style="@style/CodeFont"
android:id="@+id/item_freshWater"
android:text="@string/item_freshWater"
android:layout_below="@id/item_camping"/>
<ImageView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_toRightOf="@id/item_freshWater"
android:layout_alignTop="@id/item_freshWater"
android:id="@+id/freshWaterImage"/>
<ListView
android:layout_width="fill_parent"
android:layout_below="@+id/item_freshWater"
android:layout_height="fill_parent"
android:id="@+id/android:list"
android:layout_weight="0.5"/>
Я генерирую детали для представления списка динамически, поэтому он может быть разных размеров. На данный момент более половины экрана занимают textViews и imageViews. Это оставляет около 3-го слева для listView, поэтому он не выглядит слишком красиво. Можно ли использовать вид прокрутки, чтобы высота списка была больше. Я думаю, что способ реализовать это было бы с весом, но у меня проблемы с этим. Как всегда, любой совет приветствуется.