摘要: 第一种:按照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 ... 阅读全文
posted @ 2013-03-24 18:55 My_苦行僧 阅读(1377) 评论(0) 推荐(0) 编辑