この画像のようにXMLレイアウトを設計しました。
画面に4つのボタンを均等に配置する必要がありますが、機能させるのに問題があります。考えられるすべての変更を試しました。以下は、レイアウトのXMLです。
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="40dp"
android:id="@+id/buttonlayout"
android:layout_alignBottom="@id/framelayout">
<TableLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TableRow>
<Button
android:id="@+id/previous"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/previous_icon" />
<Button
android:id="@+id/button_startprint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/print_icon"
android:padding="10dp" />
<Button
android:id="@+id/button_cam"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/cam_icon"
android:padding="10dp" />
<Button
android:id="@+id/next"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/next_icon"
android:hapticFeedbackEnabled="true"/>
</TableRow>
</TableLayout>
</RelativeLayout>
誰かがこれで私を助けることができますか?