개발/Mobile

안드로이드 스튜디오 : 앱 프로그래밍 방과후 Chapter 4_2

hojak99 2016. 1. 13. 17:20


<?
xml version="1.0" encoding="utf-8"?>
<TableLayout 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:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">

<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">

<TextView
android:text="주소"
android:textSize="25dp"
android:layout_height="wrap_content"
android:layout_width="wrap_content" />

<EditText
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:hint="서울시종로구120"
android:textSize="20dp"
android:layout_column="1" />

</TableRow>

<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">

<TextView
android:text="이름"
android:textSize="25dp"
android:layout_height="wrap_content"
android:layout_width="wrap_content"/>

<EditText
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:hint="홍길동"
android:textSize="20dp"
android:layout_column="1" />
</TableRow>

<TableRow>

<Button
android:text="저장"
android:textSize="20dp"
android:layout_height="wrap_content"
android:layout_width="wrap_content"/>

<Button
android:text="취소"
android:textSize="20dp"
android:layout_height="wrap_content"
android:layout_width="wrap_content"/>

</TableRow>
</TableLayout>


반응형