ご覧ください:スクロール可能なTableLayoutを作成するには?ここでのXMLコードで
<TableLayout
android:id="@+id/tableLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dip"
xmlns:android="http://schemas.android.com/apk/res/android">
<TableRow
android:id="@+id/tableRow1"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<!-- Some stuff goes here -->
/>
</TableRow>
<TableRow
android:id="@+id/tableRow2"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<!-- Some stuff goes here -->
/>
</TableRow>
<TableRow
android:id="@+id/tableRow3"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<!-- Some stuff goes here -->
/>
</TableRow>
</TableLayout>
私のコードは、はるかに長いよりもあるんだけど、不要な部分を排除しました。 問題は私がこれをTableLayout
にスクロール可能にして、すべてのものを表示できるようにすることです。
私はそれをスクロール可能にするためにTableLayout
にこの行を入れてみました:
android:isScrollContainer="true"
しかし、それは仕事をしません。 方法はありますか?
非常に非常にワーキングソリューションをTableLayout。ありがとう:) – iTurki
@citizenなぜ 'LinearLayout'ですか? – Sudhanshu
@Sudhanshuこの投稿は3年前ですが、私が覚えている限り、向きを垂直に設定する最も基本的なラッパーです。 –