How can I handle onListItemClick(…) based on what view inside the row was clicked?
问题 Question I have a listView inside a DialogFragment and I want to fire certain callbacks only when certain particular items inside a row are fired. How can I do that? Basically, I want to do something like this public void onItemClick(AdapterView<?> parent, View view, int position, long id) { final int viewId = view.getId(); if ((viewId == R.id.textView1) || (viewId == R.id.textView2)) { // do something... } which I can't. Read further if you don't know why. What I tried I tried to look into