Code example for ListAdapter

Methods: hasStableIds

0
    if (state != STATE_NORMAL) { return -1; }
    return core.getItemId(position);
  } 
 
  @Override 
  public boolean hasStableIds() { return core.hasStableIds(); }
 
  @Override 
  public View getView(final int position, final View convertView, final ViewGroup parent) {
    if (state == STATE_NORMAL) {
      return core.getView(position, convertView, parent);
    } 
    return stateHelper.getCustomStateView(state, context, lastResponseData, parent);
  } 
 
  @Override 
  public int getItemViewType(final int position) {
    return state == STATE_NORMAL ? core.getItemViewType(position) : AdapterView.ITEM_VIEW_TYPE_IGNORE;
  } 
 
  @Override