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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Afzaal Ahmad ZeeshanRank #60 · 27.6K reputationPosted Dec 19, 2015, 12:17 AM EST
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(); } });Harshad PansuriyaRank #1,124 · 1.6K reputationPosted Dec 19, 2015, 2:25 AM EST
Afzaal Ahmad ZeeshanRank #60 · 27.6K reputationPosted Dec 19, 2015, 2:30 AM EST
Harshad PansuriyaRank #1,124 · 1.6K reputationPosted Dec 19, 2015, 2:41 AM EST