Wednesday 17 October 2012

ANDROID - ListView Click Listener




Click Listener:

lvList.setOnItemClickListener(new OnItemClickListener() {

@Override
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
long arg3) {
// TODO Auto-generated method stub

Toast.makeText(getApplicationContext(),
"U Clicked.." + str[arg2], 5000).show();

}

});


1 comment:



  1. Hi, thank you very much for help. I am going to test that in the near future. Cheers




    Android Training in Chennai

    ReplyDelete