[ad_1]
@Override
public void onClick(View v){
switch(v.getId()){
case R.id.btnCancel:
//your code for onclick of that button
break;
}
[ad_2]
solved retrieving the id of the view that was clicked [duplicate]
[ad_1]
@Override
public void onClick(View v){
switch(v.getId()){
case R.id.btnCancel:
//your code for onclick of that button
break;
}
[ad_2]
solved retrieving the id of the view that was clicked [duplicate]