Android examples for User Interface:ListView
get All ListView Section Counts
import java.util.List; import android.widget.ListView; public class Main { public static int getAllListViewSectionCounts(ListView lv, List dataSource) { return dataSource.size() + lv.getHeaderViewsCount() + lv.getFooterViewsCount();/*from w w w. ja v a2 s . c o m*/ } }