Skip to content

Android.widget.RelativeLayout

RelativeLayout(릴레이티브 레이아웃)은 위젯의 위치를 상대위젯/컨테이너를 기준으로 결정하는 방법이다.

How to use

첫 번째로, 부모 컨테이너 내부에서 위젯 자신의 위치를 결정하는 속성은 다음과 같다:

RelativeLayout_parent.png

두 번째로, 상대 위젯/컨테이너를 기준으로 배치 시 사용하는 속성은 다음과 같다:

RelativeLayout_standard.png

Positioning Views

android:layout_alignParentTop
If "true", makes the top edge of this view match the top edge of the parent.
android:layout_centerVertical
If "true", centers this child vertically within its parent.
android:layout_below
Positions the top edge of this view below the view specified with a resource ID.
android:layout_toRightOf
Positions the left edge of this view to the right of the view specified with a resource ID.

See also

Favorite site