未找到列表ID:android:list

Tro*_*roj 4 android listview

我试图找到列表视图的id,但它只是这样输入不起作用:this.view =(ListView)findViewById(R.id.list); R.id.list - >不工作,因为它无法使用我自己的自定义列表找到id Iam.

        <ListView
        android:id="@+id/android:list"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" />
Run Code Online (Sandbox Code Playgroud)

bli*_*uff 12

<ListView 
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
</ListView>
Run Code Online (Sandbox Code Playgroud)

获得它:

findViewById(android.R.id.list);
Run Code Online (Sandbox Code Playgroud)