2
我正在用ListView佈局編寫一個應用程序,我想在此ListView複選框中添加任何行 。 我該怎麼做?如何添加CheckBox到Android中的任何ListView項目?
這是我的XML文件:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ListView
android:id="@+id/listView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1">
</ListView>
</LinearLayout>
感謝 Moshik。