Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List id not found: android:list

Iam trying to find the id for the listview, but it dosen't work just typing like this: this.view = (ListView) findViewById(R.id.list); R.id.list -> dosen't work, cause it can't find the id Iam using my own custom made list.

        <ListView
        android:id="@+id/android:list"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" />
like image 792
Troj Avatar asked Dec 17 '22 20:12

Troj


1 Answers

<ListView 
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
</ListView>

To obtain it:

findViewById(android.R.id.list);
like image 87
blindstuff Avatar answered Dec 25 '22 09:12

blindstuff