Try this :
listview.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, final View view, int position, long id) {
//your code
}
});
1
solved how to listview rows should be clickable? [closed]