<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"  //같은 이름으로 xml만들고 horizontal 설정한 파일만들면 가로파일임
    android:padding="15dp"
    >

    <ImageView
        android:layout_width="match_parent"
        android:layout_height="175dp"
        android:src="@drawable/msgicon"
        />
    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="@string/intro_main"
        android:textSize="20dp"
        android:gravity="center_horizontal"
        android:layout_marginTop="200dp"/>
    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="@string/intro_learn"
        android:textSize="20dp"
        android:gravity="center_horizontal"
        android:textColor="#111111"
        android:layout_marginTop="230dp"/>


    <Button
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="@string/intro_setting"
        android:layout_alignParentBottom="true"
        android:layout_marginBottom="50dp"
        android:background="@drawable/btn_round"
        />

    <Button
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:background="@drawable/btn_round"
        android:text="@string/intro_notnow"
        />

</RelativeLayout>

 

'실습' 카테고리의 다른 글

안드로이드, stopwatch  (0) 2022.04.22
안드로이드, 로그인 레이아웃 구현  (0) 2022.04.21

+ Recent posts