onListItemClick is not getting called on ListActivity

后端 未结 6 991
闹比i
闹比i 2021-01-16 12:00

I have a small application, and I am trying to display list of youtube thumbnails using the ListActivity

public class ResultListActivity extends ListActivity         


        
6条回答
  •  离开以前
    2021-01-16 12:29

    ListView lv = getListView();
     lv.setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener() {
                    @Override
                    public void onItemClick(AdapterView arg0, View view, int arg2,
                            long arg3) {
                         Log.d("test","Inside onListItemClick");
                    }
                });
    

提交回复
热议问题