LinearLayout은 위젯들의 선형적배치에 사용됩니다.
수평,수직으로 지정하여 위젯들의 위치를 정하게 됩니다.
UI code
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" # vertical(수직),horizontal(수평) 가능
android:gravity="center">
<원하는 위젯>
</LinearLayout>
'개발 > 안드로이드' 카테고리의 다른 글
Android - ProgressBar (0) | 2023.01.30 |
---|---|
Android - AlertDialog (0) | 2023.01.30 |
android - ImageView (1) | 2023.01.30 |
Android - Log (0) | 2023.01.30 |
Android - Toast / snackbar (0) | 2023.01.30 |