How to create listview onItemclicklistener

后端 未结 3 969
面向向阳花
面向向阳花 2020-12-06 05:21

I want to create listview. I got the value from the JSON. Here I got the value from the json into listview but i can\'t get the onItemclickListener method. Why this is

3条回答
  •  情深已故
    2020-12-06 05:25

    Use This:

     contests_listView.setOnItemClickListener(new AdapaterView.OnItemClickListener() {
    
            @Override
            public void onItemClick(AdapterView arg0, View arg1,
                    int position, long id) {
    
                Intent in1 = new Intent(Activites_Activity.this, Activity_display.class);
    
                startActivity(in1);
            }
        });
    

提交回复
热议问题