인디노트
RelativeLayout - 상대배치 본문
출처: https://kimg0130.tistory.com/entry/RelativeLayout-상대배치 [How much your passion?]
특성이름 | 적용대상 | 설명 | 값 |
android:gravity | 부모 뷰 | 부모 안에서 자식 뷰의 정렬 | 다음 상수들 중 하나 또는 ‘|’로 연결한것: bottom, left, right, center_vertical, fill_vertival, center_horizontal, fill_horizontal, center, fill |
android:layout_centerInParent | 자식 뷰 | 수직, 수평 중앙에 배치 | true / false |
android:layout_centerHorizontal | 자식 뷰 | 수평중앙에 배치 | true / false |
android:layout_centerVerticla | 자식 뷰 | 수직중앙에 배치 | true / false |
android:layout_alignParentTop | 자식 뷰 | 상단 가장자리에 배치 | true / false |
android:layout_alignParentBottom | 자식 뷰 | 하단 가장자리에 배치 | true / false |
android:layout_alignParentLeft | 자식 뷰 | 왼쪽 가장자리에 배치 | true / false |
android:layout_alignParentRight | 자식 뷰 | 오른쪽 가장자리에 배치 | true / false |
android:layout_alignRight | 자식 뷰 | 특정ID의 오른쪽에 배치 | 대상 뷰의 ID (ex:@id/ButtonCenter) |
android:layout_alignLeft | 자식 뷰 | 특정ID의 왼쪽에 배치 | 대상 뷰의 ID (ex:@id/ButtonCenter) |
android:layout_alignTop | 자식 뷰 | 특정ID의 위에 배치 | 대상 뷰의 ID (ex:@id/ButtonCenter) |
android:layout_alignBottom | 자식 뷰 | 특정ID의 아래에 배치 | 대상 뷰의 ID (ex:@id/ButtonCenter) |
android:layout_above | 자식 뷰 | 하단 가장자리를 특정ID의 상단에 붙임 | 대상 뷰의 ID (ex:@id/ButtonCenter) |
android:layout_below | 자식 뷰 | 상단 가장자리는 특정ID의 하단에 붙임 | 대상 뷰의 ID (ex:@id/ButtonCenter) |
android:layout_toleftOf | 자식 뷰 | 오른쪽 가장자리를 특정ID의 왼쪽에 붙임 | 대상 뷰의 ID (ex:@id/ButtonCenter) |
android:layout_toRightOf | 자식 뷰 | 왼쪽 가장자리를 특정ID의 오른쪼에 붙임 | 대상 뷰의 ID (ex:@id/ButtonCenter) |
반응형
'소스 팁 > Java, Android, Kotlin' 카테고리의 다른 글
Android NDK - 독립 실행형 툴체인 (0) | 2019.02.01 |
---|---|
Compiling the latest OpenSSL for Android (0) | 2019.02.01 |
json 파싱 (0) | 2018.10.23 |
xcode 에서 java JNI 사용하기 (0) | 2018.10.16 |
[JAVA] jni로 HelloWorld출력 (package에 포함) (0) | 2018.10.16 |
Comments