前提・実現したいこと
デフォルトだとconstraintレイアウトだと思うのですが、これを簡単にリニアレイアウトに変える方法はありませんか?
レイアウトXMLファイルで、constraintレイアウトをリニアレイアウトに書き直すしか方法はないのでしょうか?
そして、ルート部分をリニアレイアウトにする場合、これの正しい書式をご教示いただけませんか?
試したこと
デザイン画面で、リニアレイアウトをドラッグドロップしても、ルートのconstraintレイアウトは変わらない。
その中に入ってしまう。
また、ルート部分にリニアレイアウトを書く場合、どのように書くのが正しいのでしょうか?
Java
1 <LinearLayout 2 android:layout_width="match_parent" 3 android:layout_height="match_parent" 4 android:orientation="vertical"> 5 </LinearLayout>
Java
1 <LinearLayout 2 xmlns:app="http://schemas.android.com/apk/res-auto" 3 xmlns:tools="http://schemas.android.com/tools" 4 android:layout_width="match_parent" 5 android:layout_height="match_parent" 6 android:orientation="vertical"> 7 </LinearLayout>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/06/17 16:02