У меня проблема с макетом Android.
У меня есть некоторые компоненты (здесь TableLayout, а затем ListView). Моя полоса прокрутки связана только с ListView, а не с TableLayout. Поскольку мой TableLayout станет длиннее, и в этом случае мой Listview будет нечитабельным.
Как получить полосу прокрутки для всей страницы, а не только для ListView?
Мой код:
<TableLayout
android:id="@+id/tableLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="77dp" >
<TableRow
android:id="@+id/tableRow1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:layout_column="1"
android:text="@string/client"
android:width="100px" />
<TextView
android:id="@+id/client"
android:layout_column="2"
android:width="200px" />
</TableRow>
</TableLayout>
<ListView
android:id="@+id/lstPointsVerification"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true" >
</ListView>
Вот код каждой строки ListView
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/tvDate"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
style="@style/ListePrincipal"
/>
Как мне исправить это поведение?
Привет