20. Adapter A
Adapter B
Adapter C
Listview listView; // initialize
ListAdapter a, b, c, d;// initialize
MergeAdapter adapter = new MergeAdapter(context);
adapter.addAdapter(a);
adapter.addAdapter(b);
adapter.addAdapter(c);
adapter.addAdapter(d);
Adapter D
21. @Override
public void requestLayout() {
// We will assume that once measured this will not need to resize
// itself, so there is no need to pass the layout request to the parent
// view (ListView).
forceLayout();
}