Code example for SparseIntArray

Methods: put

0
   * @param type 
   * @param item 
   * @return this adapter 
   */ 
  public MultiTypeAdapter addItem(int type, Object item) {
    types.put(items.size(), type);
    items.add(item);
 
    notifyDataSetChanged(); 
    return this;
  } 
 
  /** 
   * Add items to adapter registered as the given type 
   * 
   * @param type 
   * @param items 
   * @return this adapter 
   */ 
  public MultiTypeAdapter addItems(int type, Object[] items) {
    if (items == null || items.length == 0)