<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 메인 레이아웃
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
android:orientation="vertical" 수직으로 배치 되도록
>
<LinearLayout 가장위쪽 레이아웃
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_weight="1"
android:orientation="horizontal" 수평으로 배치되도록
>
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@color/colorPrimaryDark"
android:layout_marginBottom="6dp"
/>
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@color/colorPrimaryDark"
android:layout_marginLeft="6dp"
android:layout_marginBottom="6dp"
/>
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@color/colorPrimaryDark"
android:layout_marginLeft="6dp"
android:layout_marginBottom="6dp"
/>
</LinearLayout>
<LinearLayout 중간 레이아웃
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1 "
android:orientation="horizontal"
>
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@color/colorPrimaryDark"
android:layout_marginBottom="6dp"
/>
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@color/colorPrimaryDark"
android:layout_marginLeft="6dp"
android:layout_marginBottom="6dp"
/>
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@color/colorPrimaryDark"
android:layout_marginLeft="6dp"
android:layout_marginBottom="6dp"
/>
</LinearLayout>
<LinearLayout 바닥 레이아웃
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1 "
android:orientation="horizontal"
>
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@color/colorPrimaryDark"
/>
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@color/colorPrimaryDark"
android:layout_marginLeft="6dp"
/>
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@color/colorPrimaryDark"
android:layout_marginLeft="6dp"
/>
</LinearLayout>
</LinearLayout>
'Front-end > Android (안드로이드 앱 개발)' 카테고리의 다른 글
Android studio : 이미지 넣기, 앱 이미지 넣기 (0) | 2020.02.17 |
---|---|
Android studio : 애뮬레이터 에러 (0) | 2020.01.20 |
Android studio : View - FrameLayout , ScrollView (0) | 2020.01.08 |
Android studio : View - RelativeLayout (0) | 2020.01.07 |
Android studio : View - LinearLayout (0) | 2020.01.06 |
댓글