문자보내기를 누르고 주소록에서 누구한테 보낼지 보내는 화면 입니다. 이화면처럼 구성하고싶은데요...
그런데 ListView까지만 나오고 ListView 밑에 버튼이 안나오네요 ㅠ
ListView는 실제 전화번호부로 엄청 길어요~
왜그런거죠? 첨부파일에 사진올려놨습니다. 저런화면을 하고싶은데...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="@string/addresshint"/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<CheckBox
android:id="@+id/addresscheck"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<ListView
android:id="@+id/address"
android:layout_weight="0"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:onClick="selection"
android:layout_weight="2"
android:text="@string/selection"/>
</LinearLayout>




Listview에 wrap으로 높이를 주셨으니 아이템만큼 높이가 가겠죠.. 근데 아이템이 엄청 많으니... 그 높이는
스크린사이즈만큼 갈테고요.. 그렇게되면 버튼은 오갈데가 없어지죠... Listview에 높이를 강제조dip 지정해주시거나
또는 버튼의 layout_weight="0"이런식으로 가중치를주면(리니어 레이아웃만 가능) 살릴수 있을거 같네요 버튼을