androidstudioのMainActivity内の画面を二つに分割したいです。
まず、画面は横向き設定の状態で1:1で右左に分割したいのですが、分割されません…ちなみにエラーはでません
activity_main.xml
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 9 10 <LinearLayout android:layout_height="match_parent" 11 android:layout_width="match_parent" 12 android:orientation="vertical" 13 android:layout_weight="1"> 14 15 16 <LinearLayout 17 android:layout_width="match_parent" 18 android:layout_height="match_parent" 19 android:layout_weight="1" 20 android:orientation="vertical"> 21 22 </LinearLayout> 23 </LinearLayout> 24 </LinearLayout> 25

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/10/14 05:03