画面横向きの設定で1:1に画面分割した状態で、さらに右側を上下に分割したいのですが、このコードでは左側が上下に分割されてしまいます…右側を上下に分割することはできないのでしょうか…
activity_main
java
1<?xml version="1.0" encoding="utf-8"?> 2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:app="http://schemas.android.com/apk/res-auto" 4 xmlns:tools="http://schemas.android.com/tools" 5 android:layout_width="match_parent" 6 android:layout_height="match_parent" 7 tools:context="com.example.a1881.game.MainActivity" 8 android:orientation="horizontal" 9 android:weightSum="2"> 10 11 12 <LinearLayout 13 android:layout_width="0dp" 14 android:layout_height="match_parent" 15 android:layout_weight="1" 16 android:weightSum="2" 17 android:orientation="vertical"> 18 19 <LinearLayout 20 android:layout_width="match_parent" 21 android:layout_height="0dp" 22 android:layout_weight="1"> 23 24 <LinearLayout 25 android:layout_width="match_parent" 26 android:layout_height="0dp" 27 android:layout_weight="1"> 28 29 30 <LinearLayout 31 android:layout_width="0dp" 32 android:layout_height="match_parent" 33 android:layout_weight="1"> 34 35 36 </LinearLayout> 37 </LinearLayout> 38 </LinearLayout> 39 </LinearLayout> 40</LinearLayout>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。