@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_custom_ui);

        mCustomTabActivityHelper = new CustomTabActivityHelper();
        findViewById(R.id.start_custom_tab).setOnClickListener(this);

        mUrlEditText = (EditText) findViewById(R.id.url);
        mCustomTabColorEditText = (EditText) findViewById(R.id.custom_toolbar_color);
        mCustomTabSecondaryColorEditText =
                (EditText) findViewById(R.id.custom_toolbar_secondary_color);
        mShowActionButtonCheckbox = (CheckBox) findViewById(R.id.custom_show_action_button);
        mAddMenusCheckbox = (CheckBox) findViewById(R.id.custom_add_menus);
        mShowTitleCheckBox = (CheckBox) findViewById(R.id.show_title);
        mCustomBackButtonCheckBox = (CheckBox) findViewById(R.id.custom_back_button);
        mAutoHideAppBarCheckbox = (CheckBox) findViewById(R.id.auto_hide_checkbox);
        mAddDefaultShareCheckbox = (CheckBox) findViewById(R.id.add_default_share);
        mToolbarItemCheckbox = (CheckBox) findViewById(R.id.add_toolbar_item);
    }
Opens Chrome Custom Tabs with a customized UI.
demos/src/main/java/org/chromium/customtabsdemos/CustomUIActivity.java