Android: id list view

前端 未结 3 2067
闹比i
闹比i 2021-02-09 02:37

I have a list view declared in my xml:




        
3条回答
  •  无人共我
    2021-02-09 03:12

    Try this: android:id="@+id/list" Then clean project and rebuild. In java, just call findViewById like this:

       ListView lv = (ListView)findViewById(R.id.list); 
    


    Ref: http://developer.android.com/reference/android/view/View.html

提交回复
热议问题