Search in sources :

Example 1 with FooterBarMixin

use of com.google.android.setupcompat.template.FooterBarMixin in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class MasterClear method setUpInitiateButton.

private void setUpInitiateButton() {
    if (mInitiateButton != null) {
        return;
    }
    final GlifLayout layout = mContentView.findViewById(R.id.setup_wizard_layout);
    final FooterBarMixin mixin = layout.getMixin(FooterBarMixin.class);
    mixin.setPrimaryButton(new FooterButton.Builder(getActivity()).setText(R.string.master_clear_button_text).setListener(mInitiateListener).setButtonType(ButtonType.OTHER).setTheme(R.style.SudGlifButton_Primary).build());
    mInitiateButton = mixin.getPrimaryButton();
}
Also used : GlifLayout(com.google.android.setupdesign.GlifLayout) FooterBarMixin(com.google.android.setupcompat.template.FooterBarMixin)

Example 2 with FooterBarMixin

use of com.google.android.setupcompat.template.FooterBarMixin in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class MasterClearConfirm method establishFinalConfirmationState.

/**
 * Configure the UI for the final confirmation interaction
 */
private void establishFinalConfirmationState() {
    final GlifLayout layout = mContentView.findViewById(R.id.setup_wizard_layout);
    final FooterBarMixin mixin = layout.getMixin(FooterBarMixin.class);
    mixin.setPrimaryButton(new FooterButton.Builder(getActivity()).setText(R.string.master_clear_button_text).setListener(mFinalClickListener).setButtonType(ButtonType.OTHER).setTheme(R.style.SudGlifButton_Primary).build());
}
Also used : GlifLayout(com.google.android.setupdesign.GlifLayout) FooterBarMixin(com.google.android.setupcompat.template.FooterBarMixin)

Example 3 with FooterBarMixin

use of com.google.android.setupcompat.template.FooterBarMixin in project android_packages_apps_Settings by omnirom.

the class MainClearConfirm method establishFinalConfirmationState.

/**
 * Configure the UI for the final confirmation interaction
 */
private void establishFinalConfirmationState() {
    final GlifLayout layout = mContentView.findViewById(R.id.setup_wizard_layout);
    final FooterBarMixin mixin = layout.getMixin(FooterBarMixin.class);
    mixin.setPrimaryButton(new FooterButton.Builder(getActivity()).setText(R.string.main_clear_button_text).setListener(mFinalClickListener).setButtonType(ButtonType.OTHER).setTheme(R.style.SudGlifButton_Primary).build());
}
Also used : GlifLayout(com.google.android.setupdesign.GlifLayout) FooterBarMixin(com.google.android.setupcompat.template.FooterBarMixin)

Example 4 with FooterBarMixin

use of com.google.android.setupcompat.template.FooterBarMixin in project android_packages_apps_Settings by omnirom.

the class MainClear method setUpInitiateButton.

private void setUpInitiateButton() {
    if (mInitiateButton != null) {
        return;
    }
    final GlifLayout layout = mContentView.findViewById(R.id.setup_wizard_layout);
    final FooterBarMixin mixin = layout.getMixin(FooterBarMixin.class);
    mixin.setPrimaryButton(new FooterButton.Builder(getActivity()).setText(R.string.main_clear_button_text).setListener(mInitiateListener).setButtonType(ButtonType.OTHER).setTheme(R.style.SudGlifButton_Primary).build());
    mInitiateButton = mixin.getPrimaryButton();
}
Also used : GlifLayout(com.google.android.setupdesign.GlifLayout) FooterBarMixin(com.google.android.setupcompat.template.FooterBarMixin)

Example 5 with FooterBarMixin

use of com.google.android.setupcompat.template.FooterBarMixin in project android_packages_apps_Settings by omnirom.

the class InstallCaCertificateWarning method onCreate.

@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setTheme(SetupWizardUtils.getTheme(this, getIntent()));
    ThemeHelper.trySetDynamicColor(this);
    setContentView(R.layout.ca_certificate_warning_dialog);
    getWindow().addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
    final GlifLayout layout = findViewById(R.id.setup_wizard_layout);
    layout.setHeaderText(R.string.ca_certificate_warning_title);
    final FooterBarMixin mixin = layout.getMixin(FooterBarMixin.class);
    mixin.setSecondaryButton(new FooterButton.Builder(this).setText(R.string.certificate_warning_install_anyway).setListener(installCaCertificate()).setButtonType(FooterButton.ButtonType.OTHER).setTheme(R.style.SudGlifButton_Secondary).build());
    mixin.getSecondaryButtonView().setFilterTouchesWhenObscured(true);
    mixin.setPrimaryButton(new FooterButton.Builder(this).setText(R.string.certificate_warning_dont_install).setListener(returnToInstallCertificateFromStorage()).setButtonType(FooterButton.ButtonType.NEXT).setTheme(R.style.SudGlifButton_Primary).build());
    mixin.getPrimaryButtonView().setFilterTouchesWhenObscured(true);
}
Also used : GlifLayout(com.google.android.setupdesign.GlifLayout) FooterBarMixin(com.google.android.setupcompat.template.FooterBarMixin)

Aggregations

FooterBarMixin (com.google.android.setupcompat.template.FooterBarMixin)5 GlifLayout (com.google.android.setupdesign.GlifLayout)5