Answers for "how to get position of selected item in listview in android"

0

android how to get position of a row in listview

View parentRow = (View) v.getParent();
ListView listView = (ListView) parentRow.getParent();
index = listView.getPositionForView(parentRow);
Posted by: Guest on April-26-2021

Code answers related to "how to get position of selected item in listview in android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language