안드로이드 개발 질문/답변
(글 수 45,052)
안드로이드 개발 2일째 입니다.
화면 그리는것이 어렵네요.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/txtTitle01"
android:text="메세지 받을 사람">
</TextView>
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="4.0"
>
<EditText android:id="@+id/txtDisplayName"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:text="이름"></EditText>
<EditText android:id="@+id/txtPhoneNo"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:text="@string/hp"></EditText>
<Button android:id="@+id/btnPhoneBook"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="2.0"
android:text="주소록"></Button>
</LinearLayout>
</LinearLayout>
대략 이렇게 나오도록 하려는데요
|--------------------|
|----|---------|------|
아무리해도 비율 틀리고 버튼이 안보이기도 하고 하네요.
다른분들은 화면 설계할때 어떻게 하시나요?