摘要:
第一种:按照listview的项数确定高度 1 ListAdapter listAdapter = listView.getAdapter(); 2 if (listAdapter == null) { 3 return; 4 } 5 6 int totalHeight = 0; 7 for (int i = 0; i < listAdapter.getCount(); i++) { 8 View listItem = listAdapter.getView(i, null, listView); 9 ... 阅读全文