개발/안드로이드
Android - LinearLayout
웅'jk
2023. 1. 30. 23:13
LinearLayout은 위젯들의 선형적배치에 사용됩니다.
수평,수직으로 지정하여 위젯들의 위치를 정하게 됩니다.
UI code
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" # vertical(수직),horizontal(수평) 가능
android:gravity="center">
<원하는 위젯>
</LinearLayout>