Answers for "android how to get position of a row in listview"

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 "android how to get position of a row in listview"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language