ListView Item clicked Count (Android Java)

One solution is to create an array of integers that is the same size as the number of items in your listview.

ListView has a method called onItemClick() that tells you which position is clicked. You can use this method to increment the value at the appropriate index of your array.

Leave a Comment