android how to get position of a row in listview

Solutions on MaxInterview for android how to get position of a row in listview by the best coders in the world

showing results for - "android how to get position of a row in listview"
Emma
20 Jan 2018
1View parentRow = (View) v.getParent();
2ListView listView = (ListView) parentRow.getParent();
3index = listView.getPositionForView(parentRow);
4
similar questions