1

I'm using MergeAdapter by CommonsWare to merge two ListViews. How can i add a fixed footer to this list?

I'm doing this way:

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);

Where and how i put the fixed footer?

Shaeldon
  • 873
  • 4
  • 18
  • 28
Lucas
  • 11
  • 1

1 Answers1

2

Then you would do it the same way as you would without MergeAdapter:

  • Wrap the ListView in a vertical LinearLayout
  • Put your footer in the LinearLayout, after the ListView
CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491