私はカスタムリストアダプタをTableLayoutの中に持っています。このTableLayoutは、LinearLayoutの内部にネストされています。TableLayoutにカスタムリストアダプタを追加する
新しい子ビューがリストに追加されると、リストアダプタは展開されます。リストアダプタのサイズが大きくなると、TableRowのサイズを動的に増やしたいと考えています。リストが大きくなるとボタンが押し下げられました。
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent" android:layout_width="match_parent"
>
<LinearLayout">
<!-- Draw header + sub title -->
<LinearLayout android:orientation="vertical" android:layout_height="fill_parent" android:layout_width="fill_parent" >
<TextView ></TextView>
<TextView ></TextView>
</LinearLayout>
<LinearLayout android:orientation="horizontal">
<ImageView />
<LinearLayout android:orientation="vertical" android:layout_height="fill_parent" android:layout_width="fill_parent"
android:layout_weight="1">
<TableLayout android:layout_height="fill_parent" android:layout_width="fill_parent" android:layout_weight="1">
<TableRow android:id="@+id/tr1">
<CustomList android:id="@+id/mainview"
ndroid:layout_height="wrap_content" android:layout_width="wrap_content" />
</TableRow>
<TableRow android:layout_height="wrap_content"
android:layout_width="match_parent">
<Button android:layout_width="wrap_content" android:id="@+id/button1"
android:text="@string/buttonPrevious" android:layout_height="wrap_content">
</Button>
<Button android:layout_width="wrap_content" android:id="@+id/button2"
android:text="@string/buttonNext" android:layout_height="wrap_content"></Button>
</TableRow>
</TableLayout>
</LinearLayout>
<ImageView />
</LinearLayout>
</ScrollView>
私のカスタムリストアダプターなどでレイアウトがどのように膨張するかを変更する必要がありますか?
重複達成しようとしている同じものかもしれ信じる[スクロールしないAndroidのListViewコントロールを?](http://stackoverflow.com/questions/3192595/android-listview-that -does-not-scroll)を受け入れる。 – blahdiblah