저는 안드로이드 앱 개발을 처음 사용합니다.안드로이드에서 ListView가 보이지 않습니다.
이것은 내 xml 레이아웃 파일입니다.
<?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" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" >
<Button
android:layout_weight="0.5"
android:id="@+id/back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/cancel"/>
<Button
android:layout_weight="0.5"
android:layout_gravity="right"
android:id="@+id/editall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/editall"/>
</LinearLayout>
<ListView
android:id="@android:id/list"
android:cacheColorHint="#00000000"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fadingEdge="none"/>
</LinearLayout>
여기에서 버튼을 볼 수 있지만 목록보기가 표시되지 않습니다. 어떤 몸이라도 제발 도와주세요. 미리 감사드립니다
덕분에 나는 이것을 보지 못했습니다. 감사합니다. –
그리고 ListView에'android : layout_height = "fill_parent"를 넣어서 나머지 공간을 모두 가져갈 수도 있습니다 – fiddler