@Override
    public View getView(int position, View convertView, ViewGroup parent) {
        final BrowserActionItem menuItem = mMenuItems.get(position);
        final ViewHolderItem viewHolder;
        if (convertView == null) {
            convertView = LayoutInflater.from(mContext).inflate(
                    R.layout.browser_actions_context_menu_row, null);
            viewHolder = new ViewHolderItem();
            viewHolder.mIcon =
                    (ImageView) convertView.findViewById(R.id.browser_actions_menu_item_icon);
            viewHolder.mText =
                    (TextView) convertView.findViewById(R.id.browser_actions_menu_item_text);
            convertView.setTag(viewHolder);
        } else {
            viewHolder = (ViewHolderItem) convertView.getTag();
        }

        final String titleText = menuItem.getTitle();
        viewHolder.mText.setText(titleText);
        if (menuItem.getIconId() != 0) {
            Drawable drawable = ResourcesCompat.getDrawable(
                    mContext.getResources(), menuItem.getIconId(), null);
            viewHolder.mIcon.setImageDrawable(drawable);
        } else if (menuItem.getIconUri() != null) {
            BrowserServiceImageReadTask task =
                    new BrowserServiceImageReadTask(mContext.getContentResolver()) {
                        @Override
                        protected void onBitmapFileReady(Bitmap bitmap) {
                            // ViewHolder has been reused by other item.
                            if (!TextUtils.equals(titleText, viewHolder.mText.getText())) return;
                            if (bitmap != null) {
                                viewHolder.mIcon.setVisibility(View.VISIBLE);
                                viewHolder.mIcon.setImageBitmap(bitmap);
                            } else {
                                viewHolder.mIcon.setVisibility(View.INVISIBLE);
                                viewHolder.mIcon.setImageBitmap(null);
                            }
                        }
                    };
            task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, menuItem.getIconUri());
        } else {
            viewHolder.mIcon.setImageBitmap(null);
            viewHolder.mIcon.setVisibility(View.INVISIBLE);
        }
        return convertView;
    }
The adapter to display the icon and title of custom Browser Actions item.
customtabs/src/android/support/customtabs/browseractions/BrowserActionsFallbackMenuAdapter.java