android how to get position of a row in listview code example
Example: android how to get position of a row in listview
View parentRow = (View) v.getParent();
ListView listView = (ListView) parentRow.getParent();
index = listView.getPositionForView(parentRow);