Count Total Number Of List Items In A Listview
How to count Total Number of List Items in a ListView ? I am writing a Church Application in which i am populating list using images stored into SD Card, but now i want to count to
Solution 1:
Total list view count is
lstView.getAdapter().getCount() ,
So use
Toast.makeText(getApplicationContext(), "Total number of Items are:" + lstView.getAdapter().getCount() , Toast.LENGTH_LONG).show();
Post a Comment for "Count Total Number Of List Items In A Listview"