반응형
main.xml
<?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="match_parent"
android:layout_weight="1"
android:background="#FF0000"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical">
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical"
android:background="#FFC600"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical"
android:background="#000000"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical"
android:background="#0022FF"/>
</LinearLayout>
</LinearLayout>
반응형
'Programming > Android' 카테고리의 다른 글
안드로이드 프로그래밍 RelativeLayout 예제 (0) | 2021.08.16 |
---|---|
안드로이드 프로그래밍 직접 풀어보기 5-3 (안드로이드 예제) (0) | 2021.08.16 |
안드로이드 프로그래밍 4장 연습문제9 (안드로이드 예제) (0) | 2021.08.16 |
안드로이드 프로그래밍 4장 연습문제8 (안드로이드 예제) (0) | 2021.08.16 |
안드로이드 프로그래밍 4장 연습문제7 (안드로이드 예제) (0) | 2021.08.16 |