У меня возникают небольшие трудности при попытке получить определенный макет: я хочу иметь список. Список не должен быть прокручиваемым, но должен быть показан полностью. Но сама страница должна иметь возможность прокручивать (со списками в ней), если общий контент ist выше экрана.
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/linear_layout"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="#ff181818"
>
<Textview android:id="@+id/my_text" text="header contents goes here" android:layout_width="fill_parent" android:layout_height="wrap_content"/>
<Textview android:id="@+id/headertext" text="header contents goes here" android:layout_width="fill_parent" android:layout_height="wrap_content"/>
<ListView
android:id="@+id/my_list1"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
/>
</LinearLayout>
</ScrollView>
он использует только небольшую часть экрана (около 2 строк в списке) вместо заполнения доступной высоты, а сами списки можно прокручивать. Как я могу изменить макет, чтобы всегда показывать все списки, но иметь экран прокрутки?