Code example for GridView

Methods: getAdapter

0
 
      composeText.setSelection(end+2);
 
      if (type != RECENT_TYPE) {
        emoji.setRecentlyUsed(position);
        ((BaseAdapter)recentEmojiGrid.getAdapter()).notifyDataSetChanged();
      } 
    } 
  } 
 
  private class EmojiGridAdapter extends BaseAdapter {
 
    private final int type;
 
    public EmojiGridAdapter(int type) {
      this.type = type;
    } 
 
    @Override 
    public int getCount() { 
      if (type == RECENT_TYPE) return emoji.getRecentlyUsedAssetCount();