レイアウト FrameLayout
1つのビューを配置するだけのレイアウト。複数のビューを配置する場合、ビューを重ねて配置します。
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/frameLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
// xmlns:android="http://schemas.android.com/apk/res/android"
// android:layout_marginLeft="20dp"
// android:layout_weight="0.5"
Androidoのレイアウト
- FrameLayout 1つのビューを配置するだけのレイアウト
- RelativeLayout 基準となるパーツとの相対的な関係で位置を決めていくレイアウト
- linearlayout 他のビューを縦(Vertical)、横(Horizontal)、一列に並べて配置
