안드로이드/ FrameLayout 연습

yellow·2021년 4월 20일
0

안드로이드

목록 보기
3/6

아래 그림 코드로 짜보기

⌨코드

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >

    <FrameLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        >

        <TextView
            android:layout_width="300dp"
            android:layout_height="300dp"
            android:background="#FFC4C4" />

        <TextView
            android:layout_width="200dp"
            android:layout_height="200dp"
            android:background="#FFE185"
            android:layout_gravity="center"/>

        <TextView
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:background="#FFF8BE"
            android:layout_gravity="center"/>

    </FrameLayout>

</RelativeLayout>
profile
할 수 있어! :)

0개의 댓글

관련 채용 정보