2013年3月25日

Android之ScrollView嵌套ListView[转]

摘要: publicclassUtility {publicvoidsetListViewHeightBasedOnChildren(ListView listView) {//获取ListView对应的AdapterListAdapter listAdapter = listView.getAdapter();if(listAdapter ==null) {return;}inttotalHeight = 0;for(inti = 0, len = listAdapter.getCount(); i < len; i++) {//listAdapter.getCount()返回数据项的数目Vi 阅读全文

posted @ 2013-03-25 20:23 liyingming 阅读(108) 评论(0) 推荐(0) 编辑

导航