티스토리 뷰

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>

실행 결과

 

 

 

 

 

'Android > XML' 카테고리의 다른 글

<TextView>  꾸미기  (0) 2020.08.04
<selector>  +  ViewPager2  +  TabLayout  (0) 2020.08.04
<TabLayout>  (0) 2020.08.04
strings.xml  (0) 2020.08.04
<include>,  <ImageView>,  <ImageButton>  (0) 2020.08.04
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함