반응형
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>
반응형
'Programming > Android' 카테고리의 다른 글
안드로이드프로그래밍 RecyclerView 예제 (안드로이드 예제) (0) | 2021.08.16 |
---|---|
안드로이드 프로그래밍 테이블레이아웃계산기 (안드로이드 예제) (0) | 2021.08.16 |
안드로이드 프로그래밍 RelativeLayout 예제 (0) | 2021.08.16 |
안드로이드 프로그래밍 직접 풀어보기 5-3 (안드로이드 예제) (0) | 2021.08.16 |
안드로이드 프로그래밍 5장 직접풀어보기 5-2 (안드로이드 예제) (0) | 2021.08.16 |