摘要: public static void setListViewHeightBasedOnChildren(ListView listView) { ListAdapter listAdapter = listView.getAdapter();if (listAdapter == null) { // pre-condition return; } int totalHeight = 0; for (int i = 0; i < listAdapter.getCount(); i++){ View listItem = listAdapter.getView(i, null, listVi 阅读全文
posted @ 2013-08-30 10:38 麦兜很乖 阅读(2674) 评论(0) 推荐(1) 编辑