Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android code get arrayList index

private ArrayList<String> _categories; // Initialize all this stuff

private int getCategoryPos(String category) {
  return _categories.indexOf(category);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #android #code #arrayList #index
ADD COMMENT
Topic
Name
1+5 =