티스토리 뷰
visibility -
visible : 보이는 상태
invisible : 자리 차지하면서 안보임
gone : 숨기면서 자리도 차지하지 않음
Framelayout-
가장 간단
뷰나 컨트롤을 좌상단 모서리에 차곡차곡 쌓아놓는다.
LinearLayout-
수평 혹은 수직 방향으로 배치
orientation = horizontal, vertical
gravity = 정렬기준
TableLayout-
행과 열의 격자를 사용하여 컨트롤 배치
TableRow - 1개의 View만 담을 수 있음.
AbsoluteLayout-
컨트롤을 절대 좌표로 배치
android:layout_height="wrap_content" android:layout_width="fill_parent"
wrap_content : 최소 크기로 지정
fill_parent : 최대 크기로 지정
visible : 보이는 상태
invisible : 자리 차지하면서 안보임
gone : 숨기면서 자리도 차지하지 않음
Framelayout-
가장 간단
뷰나 컨트롤을 좌상단 모서리에 차곡차곡 쌓아놓는다.
LinearLayout-
수평 혹은 수직 방향으로 배치
orientation = horizontal, vertical
gravity = 정렬기준
TableLayout-
행과 열의 격자를 사용하여 컨트롤 배치
TableRow - 1개의 View만 담을 수 있음.
AbsoluteLayout-
컨트롤을 절대 좌표로 배치
android:layout_height="wrap_content" android:layout_width="fill_parent"
wrap_content : 최소 크기로 지정
fill_parent : 최대 크기로 지정