Skip to content

PageTheme (Android)

ANDREI SAVINSKI edited this page Mar 14, 2019 · 3 revisions

PageTheme

PageTheme is a class (provided by Okay SDK) that describes style of authorization screens. If you want customize authorithation screen provided by Okay SDK - you should create PageTheme object, configure it fields. And use this object, as field of SpaAuthorizationData, when you are calling:

PsaManager.startAuthorizationActivity(Activity activity, SpaAuthorizationData authorizationData)

Android

public class PageTheme implements Parcelable {
    private Bundle bundle = new Bundle();

    private static final String ACTION_BAR_BACKGROUND_COLOR = "actionBarBackgroundColor";
    private static final String ACTION_BAR_TEXT_COLOR = "actionBarTextColor";
    private static final String BUTTON_TEXT_COLOR = "buttonTextColor";
    private static final String BUTTON_BACKGROUND_COLOR = "buttonBackgroundColor";
    private static final String SCREEN_BACKGROUND_COLOR = "screenBackgroundColor";
    private static final String NAME_TEXT_COLOR = "nameTextColor";
    private static final String TITLE_TEXT_COLOR = "titleTextColor";
    private static final String MESSAGE_TEXT_COLOR = "messageTextColor";
    private static final String ACTION_BAR_LOGO_PATH = "actionBarLogoPath";
    private static final String ACTION_BAR_TITLE = "actionBarTitle";
    private static final String INPUT_TEXT_COLOR = "inputTextColor";
    private static final String INPUT_SELECTION_COLOR = "inputSelectionColor";
    private static final String INPUT_ERROR_COLOR = "inputErrorColor";
    private static final String INPUT_DEFAULT_COLOR = "inputDefaultColor";
    private static final String QUESTION_MARK_COLOR = "questionMarkColor";
    private static final String TRANSACTION_TYPE_TEXT_COLOR = "transactionTypeTextColor";
    private static final String INFO_SECTION_TITLE_COLOR = "infoSectionTitleColor";
    private static final String INFO_SECTION_VALUE_COLOR = "infoSectionValueColor";
    private static final String FROM_TEXT_COLOR = "fromTextColor";
    private static final String AUTH_INFO_BACKGROUND_COLOR = "authInfoBackgroundColor";
    private static final String SHOW_DETAILS_TEXT_COLOR = "showDetailsTextColor";
    private static final String CONFIRM_BUTTON_BACKGROUND_COLOR = "confirmButtonBackgroundColor";
    private static final String CONFIRM_BUTTON_TEXT_COLOR = "confirmButtonTextColor";
    private static final String CANCEL_BUTTON_BACKGROUND_COLOR = "cancelButtonBackgroundColor";
    private static final String CANCEL_BUTTON_TEXT_COLOR = "cancelButtonTextColor";
    private static final String AUTH_CONFIRMATION_BACKGROUND_COLOR = "authConfirmationBackgroundColor";
    private static final String AUTH_CONFIRMATION_TITLE_COLOR = "authConfirmationTitleColor";
    private static final String AUTH_CONFIRMATION_MESSAGE_COLOR = "authConfirmationMessageColor";
    private static final String AUTH_CONFIRMATION_THUMB_COLOR = "authConfirmationThumbColor";
    private static final String AUTH_CONFIRMATION_APOSTROPHE_COLOR = "authConfirmationApostropheColor";
    private static final String AUTH_CONFIRMATION_BUTTON_BACKGROUND_COLOR = "authConfirmationButtonBackgroundColor";
    private static final String AUTH_CONFIRMATION_BUTTON_TEXT_COLOR = "authConfirmationButtonTextColor";
    private static final String AUTH_CANCELLATION_BACKGROUND_COLOR = "authCancellationBackgroundColor";
    private static final String AUTH_CANCELLATION_TITLE_COLOR = "authCancellationTitleColor";
    private static final String AUTH_CANCELLATION_MESSAGE_COLOR = "authCancellationMessageColor";
    private static final String AUTH_CANCELLATION_THUMB_COLOR = "authCancellationThumbColor";
    private static final String AUTH_CANCELLATION_APOSTROPHE_COLOR = "authCancellationApostropheColor";
    private static final String AUTH_CANCELLATION_BUTTON_BACKGROUND_COLOR = "authCancellationButtonBackgroundColor";
    private static final String AUTH_CANCELLATION_BUTTON_TEXT_COLOR = "authCancellationButtonTextColor";
    private static final String PIN_TITLE_TEXT_COLOR = "pinTitleTextColor";
    private static final String PIN_VALUE_TEXT_COLOR = "pinValueTextColor";
    private static final String PIN_NUMBER_BUTTON_TEXT_COLOR = "pinNumberButtonTextColor";
    private static final String PIN_NUMBER_BUTTON_BACKGROUND_COLOR = "pinNumberButtonBackgroundColor";
    private static final String PIN_REMOVE_BUTTON_TEXT_COLOR = "pinRemoveButtonTextColor";
    private static final String PIN_REMOVE_BUTTON_BACKGROUND_COLOR = "pinRemoveButtonBackgroundColor";
// getters and setters
}

Explanation of fields:

Next pictures will help you to understand which key you need

Clone this wiki locally