Mobbeel for developers

Mobbeel for developers

  • MobbScan
  • MobbID
  • MobbSign
  • Clients
  • FAQ

›MobbScan UI customization

MobbScan Android SDK

  • Configure MobbScan Android SDK
  • Dealing with 16 KB page size

Getting Started

  • Getting started with MobbScan
  • Detect and scan a document in two different calls
  • Detect and scan MRZ
  • Detect and scan a PDF417
  • Scanning documents with NFC
  • Error Handling

Additional configuration

  • Configure the detection process
  • Perform face matching with MobbScan
  • Select images returned by a scan
  • Fix scan orientation
  • Record a video while user performs a scan
  • Adding a video step
  • Configure Play Store distribution

MobbScan UI customization

  • Customize MobbScan Default Interfaces
  • Customize MobbScan document scan UI
  • Customize MobbScan MRZ scan UI
  • Customize Unattended Process UI
  • Customize feedback messages

MobbScan-Agent configurations

  • Getting the verification result

Migration Guides

  • Migration to 2.29.x
  • Migration 2.25.x to 2.26.x
  • Migration 2.24.x to 2.25.x
  • Migration to 2.24.x
  • Migration to 2.22.x
  • Migration 2.19.x to 2.21.x
  • Migration 2.18.x to 2.19.x
  • Migration 2.13.x to 2.14.x

Information

  • Changelog
  • API Reference

Customize MobbScan Default Interfaces

MobbScan provides you with different default interfaces in order to use the SDK in a faster and easier way. While the default MobbScan interface might suit your needs, the default colors might not.

MobbScan allows you to customize these colors since it treats colors as resources in the SDK which can actually be overridden for this purpose.

List of color resources

This is the list of the resources that you can customize from the default interfaces of MobbScan:

Resource nameWhat will affectDefault color
background_default_colorColor of the background of the detection screen#95000000
rectangle_default_colorThe starting color of the document detection rectangle#FFFFFF
rectangle_detect_colorThe color which the document detection rectangle will use when it is detecting the document#3FC336
text_colorThe color which the text on document detection will use#FFFFFF
mrz_text_greenColor of the MRZ text displayed when detecting a document MRZ#ADFF2F
face_overlay_colorSet background color on hexadecimal string#80FFFFFF
face_outline_colorThe starting color of the face detection progress outline#FFFFFF
face_progress_colorThe color of the progress bar of the face detection#55D672
face_recording_colorThe color of the face detection progress outline when the face is being recorded#E0263B
ms_face_overlay_colorColor of the overlay view (RGB)##000000
ms_face_animation_line_colorColor of the shape strokes of the animations (RGB)#FFFFFF
ms_face_text_colorFeedback messages font color (RGB)#FFFFFF
ms_face_text_background_colorFeedback messages font background color (RGB/RGBA)#000000
ms_face_text_shadow_colorFeedback messages font shadow color (RGB/RGBA)#000000
unattended_spinner_colorThe color of the spinner at the beginning and end of the unattended activity#FF3D6B
unattended_action_title_colorThe color of the text on document detection will use#FFFFFF
unattended_countdown_colorThe color of the count down time text on the center of the screen#FFFFFF
unattended_configure_background_colorThe color of the background of the detection screen#FFFFFF
unattended_configure_title_colorThe color of the text that is showing with the spinner at the beginning and end of the unattended activity#2C2B2B
unattended_otp_text_color(OTP Step) Card background color#4287F5

Unattended document confirmation screen

The default unattended flow also includes a built-in document confirmation screen so users can review the image that was just captured before continuing.

This screen uses theme keys instead of plain color resources. To customize it, redefine UnattendedVideoTheme in your app and inherit from Base.UnattendedVideoTheme:

<resources>
    <style name="UnattendedVideoTheme" parent="@style/Base.UnattendedVideoTheme">
        <!-- Add your overrides here -->
    </style>
</resources>

The following keys are available for that confirmation screen:

KeyAffectsDefault
unattended_document_confirmation_background_colorWhole confirmation screen background#F2F2F2
unattended_document_confirmation_accent_colorSpinner and base accent for inherited colors#4035C8
unattended_document_confirmation_title_text_colorTitle textInherits accent
unattended_document_confirmation_preview_border_colorCaptured document preview borderInherits accent
unattended_document_confirmation_positive_button_text_colorPrimary button text#FFFFFF
unattended_document_confirmation_positive_button_background_colorPrimary button background, normal stateInherits accent
unattended_document_confirmation_positive_button_background_pressed_colorPrimary button background, pressed stateInherits accent
unattended_document_confirmation_positive_button_background_focused_colorPrimary button background, focused stateInherits accent
unattended_document_confirmation_positive_button_background_disabled_colorPrimary button background, disabled stateInherits accent
unattended_document_confirmation_negative_button_text_colorSecondary button textInherits accent
unattended_document_confirmation_negative_button_background_colorSecondary button background, normal stateInherits background
unattended_document_confirmation_negative_button_background_pressed_colorSecondary button background, pressed stateInherits background
unattended_document_confirmation_negative_button_background_focused_colorSecondary button background, focused stateInherits background
unattended_document_confirmation_negative_button_border_colorSecondary button borderInherits accent
unattended_document_confirmation_logo_tint_colorBottom logo tint#BDBDBD

accent refers to unattended_document_confirmation_accent_color. background refers to unattended_document_confirmation_background_color.

Example:

<resources>
    <style name="UnattendedVideoTheme" parent="@style/Base.UnattendedVideoTheme">
        <item name="unattended_document_confirmation_background_color">@color/client_unattended_bg</item>
        <item name="unattended_document_confirmation_accent_color">@color/client_unattended_accent</item>
        <item name="unattended_document_confirmation_title_text_color">@color/client_unattended_title</item>
        <item name="unattended_document_confirmation_preview_border_color">@color/client_unattended_preview_border</item>

        <item name="unattended_document_confirmation_positive_button_text_color">@color/client_unattended_btn_primary_text</item>
        <item name="unattended_document_confirmation_positive_button_background_color">@color/client_unattended_btn_primary_bg</item>
        <item name="unattended_document_confirmation_positive_button_background_pressed_color">@color/client_unattended_btn_primary_pressed</item>
        <item name="unattended_document_confirmation_positive_button_background_focused_color">@color/client_unattended_btn_primary_focused</item>
        <item name="unattended_document_confirmation_positive_button_background_disabled_color">@color/client_unattended_btn_primary_disabled</item>

        <item name="unattended_document_confirmation_negative_button_text_color">@color/client_unattended_btn_secondary_text</item>
        <item name="unattended_document_confirmation_negative_button_background_color">@color/client_unattended_btn_secondary_bg</item>
        <item name="unattended_document_confirmation_negative_button_background_pressed_color">@color/client_unattended_btn_secondary_pressed</item>
        <item name="unattended_document_confirmation_negative_button_background_focused_color">@color/client_unattended_btn_secondary_focused</item>
        <item name="unattended_document_confirmation_negative_button_border_color">@color/client_unattended_btn_secondary_border</item>

        <item name="unattended_document_confirmation_logo_tint_color">@color/client_unattended_logo_tint</item>
    </style>
</resources>
<resources>
    <color name="client_unattended_bg">#F7F8FA</color>
    <color name="client_unattended_accent">#0057B8</color>
    <color name="client_unattended_title">#0057B8</color>
    <color name="client_unattended_preview_border">#0057B8</color>

    <color name="client_unattended_btn_primary_text">#FFFFFF</color>
    <color name="client_unattended_btn_primary_bg">#0057B8</color>
    <color name="client_unattended_btn_primary_pressed">#004A9A</color>
    <color name="client_unattended_btn_primary_focused">#004A9A</color>
    <color name="client_unattended_btn_primary_disabled">#7FA8D9</color>

    <color name="client_unattended_btn_secondary_text">#0057B8</color>
    <color name="client_unattended_btn_secondary_bg">#F7F8FA</color>
    <color name="client_unattended_btn_secondary_pressed">#EDEFF3</color>
    <color name="client_unattended_btn_secondary_focused">#EDEFF3</color>
    <color name="client_unattended_btn_secondary_border">#0057B8</color>

    <color name="client_unattended_logo_tint">#A7AFBE</color>
</resources>

List of dimens resources

This is the list of the resources that you can customize from the default interfaces of MobbScan:

Resource nameWhat will affectDefault size
unattended_detection_action_text_size(Document Step) Feedback messages font size18sp
unattended_configure_service_text_sizeSize of the scanning and configuring text18sp
unattended_otp_text_sizeFeedback OTP messages font size30sp
rectangle_detector_border_sizeSize of the document detector border4dp
face_detector_border_sizeSize of the face detector border10dp
unattended_detection_countdown_text_size(Document Step) Countdown font size40sp
ms_document_text_sizeFeedback messages font size14sp
ms_face_text_shadow_offsetFeedback messages font shadow offset[2,2]

How to override the color resources

In order to override these resource values, you only have to follow the following steps:

  1. Have a file called colors.xml in your res/values/ folder.

  2. Create a color resource inside the file overriding the previous resource names as follows:

    <resources>
        ...
        <color name="RESOURCE_NAME">#000000</color>
        ...
    </resources>
    
← Configure Play Store distributionCustomize MobbScan document scan UI →
  • List of color resources
  • Unattended document confirmation screen
  • List of dimens resources
  • How to override the color resources
Mobbeel for developers
Product Documentation
MobbIDMobbScanMobbSign
Connect
LinkedInFacebookX
More
FAQContact Us
Mobbeel Solutions SL
Copyright © 2026 Mobbeel Solutions SL