Commonsware cwac Commonware在MergeAdapter上的页脚
我正在使用Commonware的MergeAdapter合并两个ListView。 如何将固定页脚添加到此列表 我是这样做的:Commonsware cwac Commonware在MergeAdapter上的页脚,commonsware-cwac,Commonsware Cwac,我正在使用Commonware的MergeAdapter合并两个ListView。 如何将固定页脚添加到此列表 我是这样做的: MergeAdapter adapter = new MergeAdapter();; View msg=inflater.inflate(R.layout.inicio_msg,null); ((TextView)msg.findViewById(R.id.msg_text)).setText(tw.getText()); adapter.addView(msg,
MergeAdapter adapter = new MergeAdapter();;
View msg=inflater.inflate(R.layout.inicio_msg,null);
((TextView)msg.findViewById(R.id.msg_text)).setText(tw.getText());
adapter.addView(msg, false);
View news=inflater.inflate(R.layout.inicio_news,null);
adapter.addView(news, true);
setListAdapter(adapter);
我将固定页脚放置在何处以及如何放置?然后您将以与不使用
MergeAdapter时相同的方式执行此操作:
- 将
列表视图
包装成垂直布局
线性布局
- 将页脚放在
列表视图之后的线性布局中
什么是“固定页脚”?它是一个固定页脚,也就是说,无论listview中有多少条记录,它都将始终显示在屏幕上