Code example for ListAdapter

Methods: registerDataSetObserver

0
  } 
 
  /** 
    * Adds a new adapter to the roster of things to appear 
    * in the aggregate list. 
    * @param adapter Source for row views for this section 
    */ 
  public void addAdapter(ListAdapter adapter) {
    pieces.add(adapter);
    adapter.registerDataSetObserver(new CascadeDataSetObserver());
  } 
 
  /** 
    * Adds a new View to the roster of things to appear 
    * in the aggregate list. 
    * @param view Single view to add 
    */ 
  public void addView(View view) {
    addView(view, false);
  }