Code example for ListAdapter

Methods: getViewTypeCount

0
  public int getItemViewType(final int position) {
    return state == STATE_NORMAL ? core.getItemViewType(position) : AdapterView.ITEM_VIEW_TYPE_IGNORE;
  } 
 
  @Override 
  public int getViewTypeCount() { return core.getViewTypeCount(); }
 
  @Override 
  public boolean isEmpty() { return getCount() == 0; } 
 
  @Override 
  public void loadMoreRecords() { 
    if (loader instanceof LoadmoreLoader) {
      if (DEBUG) { Log.d(TAG, "Force loader to fetch more elements"); }
      ((LoadmoreLoader) loader).forceLoadMore();
    } 
  } 
 
  @Override 
  public boolean moreElementsAvailable() { 
    if (state != STATE_NORMAL) { return false; }