次のコードは、3.7 インチ、4 インチ、4.6 インチのデバイスなどの小さな画面のデバイスで正しく動作しています。これは、ボタン画面に 3 つの画像を含むフッター メニューです。
7 インチのデバイスでアプリを起動すると、これら 3 つの画像はすべて正しく配置されます。ただし、これらは画面全体に引き伸ばされません。画面の半分を占めるだけで、残りは何もありません。
コメントをいただければ幸いです。ありがとう。
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="3"
android:id="@+id/footerBarContainer" >
<ToggleButton
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:id="@+id/tbBrowse"
android:background="@drawable/btn_tg_browse"
android:textOn=""
android:textOff=""
android:focusable="false"
android:focusableInTouchMode="false"
android:checked="false"
android:gravity="bottom"/>
<ToggleButton
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:id="@+id/tbHotSpot"
android:background="@drawable/btn_tg_hotspot"
android:textOn=""
android:textOff=""
android:focusable="false"
android:focusableInTouchMode="false"
android:checked="true"
android:gravity="bottom"/>
<ToggleButton
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:id="@+id/tbMatches"
android:background="@drawable/btn_tg_matches"
android:textOn=""
android:textOff=""
android:focusable="false"
android:focusableInTouchMode="false"
android:checked="false"
android:gravity="bottom"/>
</LinearLayout>