//获得流程表数据,并装配
listmsg=Common.flowDeal(msgtwo);//适配器的数据来源集合就是List
listmsg=???(你要往适配器里面添加的数据集合),
flowListview.setAdapter(new
FlowAdaptor(OrderDetail.this, listmsg));//放入适配器
LinearLayout.LayoutParams ip5=new
LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,listmsg.size()*40-1);
flowListview.setLayoutParams(ip5);
这样的目的是重新设置了ListView的内容高度。
本文深入探讨了如何使用适配器将数据集合整合到ListView中,并通过设置高度参数来实现内容高度的重新配置,确保用户界面的高效展示。
1481

被折叠的 条评论
为什么被折叠?



