Listview in android
Can i we Apply OnItemClickListener to Simple Adapter Class.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Harshad PansuriyaPosted Dec 19, 2015, 7:41 AM
Afzaal Ahmad ZeeshanPosted Dec 19, 2015, 7:30 AM
Harshad PansuriyaPosted Dec 19, 2015, 7:25 AM
Afzaal Ahmad ZeeshanPosted Dec 19, 2015, 5:17 AM
contests_listView.setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener() {@Override
public void onItemClick(AdapterView> parent, View view,int position, long id) {
String item = contests_listView.getItemAtPosition(position);
Toast.makeText(this,"You selected : " + item,Toast.LENGTH_SHORT).show(); }
});