Android/XML
<View>
혀가 길지 않은 개발자
2020. 8. 4. 13:33
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity">
<View
android:layout_width="match_parent"
android:layout_height="20dp"
android:background="#FFBBBB"
android:layout_marginTop="30dp" />
<View
android:layout_width="match_parent"
android:layout_height="10dp"
android:background="#BBFFBB"
android:layout_marginTop="30dp" />
<View
android:layout_width="match_parent"
android:layout_height="10dp"
android:background="#BBFFFF"
android:layout_marginTop="30dp" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#000000"
android:layout_marginTop="30dp" />
</LinearLayout>