私はさまざまなレイアウト構造をいじくり回してきましたが、自分のソリューションに最適なものを見つけることができないようです。
基本的に、デバイスの33%(高さ)を占める3つの行が必要です(横向きモード)。完璧だと思いましたが、の高さを指定する方法が見つからないようです。どこかで物件を見落としている可能性がありますが、ドキュメントで見つけることができません。私もオプションとして考えましたが、それを少し試してみたところ、それが最善の解決策かどうかもわかりません。
私が必要なことを達成できますか?行内で他のレイアウトを指定しますが(主にRelativeLayout)、コア構造はそれぞれ33%の高さの3行である必要があります。
編集-追加されたコード:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/rellay"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/table_background">
<LinearLayout
android:layout_weight="1"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Button
android:id="@+id/connect"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Connect To Server" />
</LinearLayout>
<LinearLayout
android:layout_weight="1"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:id="@+id/label"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scrollbars="vertical"
android:maxLines="6"
android:textColor="#FFFFFF" />
</LinearLayout>
<LinearLayout
android:layout_weight="1"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TableLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:stretchColumns="1">
<TableRow>
<RelativeLayout
android:id="@+id/cardssection"
android:layout_column="1" />
<Button
android:id="@+id/submitcards"
android:gravity="right"
android:maxWidth="10px"
android:text="Submit Cards"
android:layout_below="@id/label" />
</TableRow>
</TableLayout>
</LinearLayout>
</LinearLayout>