Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android how to get position of a row in listview

View parentRow = (View) v.getParent();
ListView listView = (ListView) parentRow.getParent();
index = listView.getPositionForView(parentRow);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #android #position #row #listview
ADD COMMENT
Topic
Name
6+8 =