안드로이드 개발 질문/답변
(글 수 45,052)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:background="@drawable/bg" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" >
<LinearLayout android:orientation="horizontal" android:layout_height="match_parent" android:layout_width="match_parent">
<LinearLayout android:orientation="vertical" android:layout_height="fill_parent" android:layout_width="match_parent" android:layout_weight="4">
<ImageView android:layout_height="wrap_content" android:layout_width="wrap_content" android:src="@drawable/icon" android:id="@+id/imageView1" ></ImageView>
<Button android:text="Button" android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
<Button android:text="Button" android:id="@+id/button2" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@+id/linearLayout" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_weight="1" >
<EditText android:background="@drawable/buttonbar" android:text="edit1" android:layout_height="wrap_content" android:layout_width="match_parent" android:layout_weight="1" />
<EditText android:background="@drawable/buttonbar" android:text="edit1" android:layout_height="wrap_content" android:layout_width="match_parent" android:layout_weight="1" />
<EditText android:background="@drawable/buttonbar" android:text="edit1" android:layout_height="wrap_content" android:layout_width="match_parent" android:layout_weight="1" />
<EditText android:background="@drawable/buttonbar" android:text="edit1" android:layout_height="wrap_content" android:layout_width="match_parent" android:layout_weight="1" />
<EditText android:background="@drawable/buttonbar" android:text="edit1" android:layout_height="wrap_content" android:layout_width="match_parent" android:layout_weight="1" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:id="@+id/linearLayout2" android:layout_height="wrap_content" >
<Button android:layout_weight="1" android:gravity="center" android:layout_width="wrap_content" android:layout_height="35sp" android:background="@drawable/regi" />
<Button android:layout_weight="1" android:gravity="center" android:layout_width="wrap_content" android:layout_height="35sp" android:background="@drawable/regi" />
<Button android:layout_weight="1" android:gravity="center" android:layout_width="wrap_content" android:layout_height="35sp" android:background="@drawable/regi" />
</LinearLayout>
</LinearLayout>
맨 밑에 리니어 레이아웃과 버튼을 넣었는데 짤리는 듯해요
버튼이 뜨지 않네요....해결 방안좀 부탁 드립니다




위에 리니어 크기가 match_parent인데요.... 당연히 밑에 나올게 없겠죠...
위에 리니어에 android:layout_weight="1" 넣어보세요