私のユーザーインターフェイスは、ランドスケープモードで次のようになります。
しかし、私はそれらを並行させたいと思っています。したがって、高さ/ 2ではなく幅/ 2が必要です。それを変更するにはどうすればよいですか?
私のコードは次のようになります。
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ffffff">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<Button
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/photo"
android:layout_weight="0.5"
android:id="@+id/btnTakePhoto" />
<Button
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/video"
android:layout_weight="0.5"
android:id="@+id/btnRecordVideo"
/>
</LinearLayout>
</FrameLayout>
よろしくお願いします。