android.widget.RelativeLayout.LayoutParams
リファレンス:http://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams.html
SUMMARY
継承するXML属性 |
android.view.ViewGroup.LayoutParamsの属性を継承します。 |
android.view.ViewGroup.MarginLayoutParamsの属性を継承します。 |
XML属性 | ||
属性 | 対応メソッド | 概要 |
android:layout_above | - | 指定したViewの上部とこのViewの下部を合わせるように配置します。 |
android:layout_alignBaseline | - | 指定したViewのベースラインに合わせて配置します。 |
android:layout_alignTop | - | 指定したViewの上方向に配置します。 |
android:layout_alignBottom | - | 指定したViewの下方向に配置します。 |
android:layout_alignLeft | - | 指定したViewの左方向に配置します。 |
android:layout_alignRight | - | 指定したViewの右方向に配置します。 |
android:layout_alignParentTop | - | 親の上方向に配置します。 |
android:layout_alignParentBottom | - | 親の下方向に配置します。 |
android:layout_alignParentLeft | - | 親の左方向に配置します。 |
android:layout_alignParentRight | - | 親の右方向に配置します。 |
android:layout_alignWithParentIfMissing | - | 親がアンカーとして使われるとき、アンカーはlayout_toLeftOf, layout_toRightOfなどを受け付けません。 |
android:layout_below | - | 指定したViewの下部とこのViewの上部を合わせるように配置します。 |
android:layout_centerHorizontal | - | 子Viewの水平配置を親Viewの幅に対して中央となるように配置します。 |
android:layout_centerInParent | - | 親の水平方向の中央に配置します。 |
android:layout_centerVertical | - | 子Viewの上下配置を親Viewの幅に対して中央となるように配置します。 |
android:layout_toLeftOf | - | 指定したViewの左端とViewの右端を合わるように配置します。 |
android:layout_toRightOf | - | 指定したViewの右端とViewの左端を合わるように配置します。 |
XML属性
- android:layout_above
- android:layout_alignBaseline
- android:layout_alignTop
- android:layout_alignBottom
- android:layout_alignLeft
- android:layout_alignRight
- android:layout_alignParentTop
指定値 デフォルト 動作 true false ○
- android:layout_alignParentBottom
指定値 デフォルト 動作 true false ○
- android:layout_alignParentLeft
指定値 デフォルト 動作 true false ○
- android:layout_alignParentRight
指定値 デフォルト 動作 true false ○
- android:layout_alignWithParentIfMissing
指定値 デフォルト 動作 true false ○
- android:layout_below
"?[package:][type:]name"形式でテーマ属性の参照を指定します。
- android:layout_centerHorizontal
指定値 デフォルト 動作 true false ○
- android:layout_centerInParent
指定値 デフォルト 動作 true false ○
- android:layout_centerVertical
指定値 デフォルト 動作 true false ○
- android:layout_toLeftOf
"?[package:][type:]name"形式でテーマ属性の参照を指定します。
- android:layout_toRightOf