Programming/Android

안드로이드 프로그래밍 직접풀어보기5-4 (안드로이드 예제)

fishersheep 2021. 8. 16. 17:58
반응형

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:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="전화번호" />

    <EditText
        android:id="@+id/edt1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="000-0000-0000"/>

    </LinearLayout>

    <LinearLayout
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="right">
    <Button

        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="입력"/>

    <Button

        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="취소"/>

    </LinearLayout>


</LinearLayout>

직접풀어보기 5-4

반응형