未找到列表id:android:列表
我正在尝试查找listview的id,但仅键入以下内容无效: this.view=(ListView)findViewById(R.id.list); R.id.list->dosen不起作用,因为它找不到id 我使用自己定制的列表未找到列表id:android:列表,android,listview,Android,Listview,我正在尝试查找listview的id,但仅键入以下内容无效: this.view=(ListView)findViewById(R.id.list); R.id.list->dosen不起作用,因为它找不到id 我使用自己定制的列表 <ListView android:id="@+id/android:list" android:layout_width="fill_parent" android:layout_height=
<ListView
android:id="@+id/android:list"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
如果您使用的是ListActivity,则可以调用getListView()
<ListView
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
</ListView>
findViewById(android.R.id.list);