//ListView自适应高度inttotalHeight=0;//总的高度for(inti=0;i<adapter.getCount();i++){ViewlistItem=adapter.getView(i,null,vListSize);//list1,当前listviewlistItem.measure(0,0);totalHeight+=listItem.getMeasuredHeight();}ViewGroup.LayoutParamsparams=vListSize...
查看全文