Skip to main content

Customization

Customization is supported following the standard way to customize in Android (overriding XML properties in your project).

Colors

<resources>
<!-- Background colors -->
<color name="smartcapture_documentcamera_primary_background">#000D1A</color>
<color name="smartcapture_documentcamera_secondary_background">#FFFFFF</color>
<color name="smartcapture_documentcamera_on_primary_background">#FFFFFF</color>
<color name="smartcapture_documentcamera_on_secondary_background">#000D1A</color>
<color name="smartcapture_documentcamera_on_secondary_background_variant">#444B53</color>

<!-- Switch colors -->
<color name="smartcapture_documentcamera_switch_track_unchecked">@android:color/transparent</color>
<color name="smartcapture_documentcamera_switch_track_checked">#FFFFFF</color>
<color name="smartcapture_documentcamera_switch_track_outline_checked">@android:color/transparent</color>
<color name="smartcapture_documentcamera_switch_track_outline_unchecked">#FFFFFF</color>
<color name="smartcapture_documentcamera_switch_thumb_checked">#B2000D1A</color>
<color name="smartcapture_documentcamera_switch_thumb_unchecked">#FFFFFF</color>
<color name="smartcapture_documentcamera_switch_checkmark_icon">#000D1A</color>
<color name="smartcapture_documentcamera_switch_disabled">#A1A8AE</color>

<!-- Icon colors -->
<color name="smartcapture_documentcamera_filled_icon">#B2000D1A</color>
<color name="smartcapture_documentcamera_filled_icon_background">#FFFFFF</color>
<color name="smartcapture_documentcamera_icon">#FFFFFF</color>

<!-- Status colors -->
<color name="smartcapture_documentcamera_scanning_idle">#FFFFFF</color>
<color name="smartcapture_documentcamera_scanning_error">#FAA050</color>
<color name="smartcapture_documentcamera_scanning_success">#78D278</color>
</resources>

Localization

<resources>
<!-- Image quality issues feedback-->
<string name="smartcapture_documentcamera_glare_detected">Light reflection visible on document</string>
<string name="smartcapture_documentcamera_glare_hint">Move your document away from direct light sources</string>
<string name="smartcapture_documentcamera_blur_detected">Document is unclear and blurry</string>
<string name="smartcapture_documentcamera_blur_hint">Hold your document and device steady</string>
<string name="smartcapture_documentcamera_low_res_detected">Document does not fill the frame</string>
<string name="smartcapture_documentcamera_low_res_hint">Move the phone closer to the document</string>
<string name="smartcapture_documentcamera_not_fully_in_frame_detected">Document is not fully in the frame</string>
<string name="smartcapture_documentcamera_not_fully_in_frame_hint">Fit your document fully within the frame</string>

<!-- Help screen -->
<string name="smartcapture_documentcamera_help_glare">Use a well lit area but avoid any strong overhead lighting</string>
<string name="smartcapture_documentcamera_help_blur">Hold your phone steady</string>
<string name="smartcapture_documentcamera_help_low_res">Fill the entire frame with your document</string>
<string name="smartcapture_documentcamera_help_title">How to take a photo of your identity document</string>
<string name="smartcapture_documentcamera_help_description">Place your identity document on a flat surface and:</string>
<string name="smartcapture_documentcamera_help_description_side">Place your document %s up on a flat surface and:</string>
<string name="smartcapture_documentcamera_help_description_side_front">FRONT SIDE</string>
<string name="smartcapture_documentcamera_help_description_side_back">BACK SIDE</string>
<string name="smartcapture_documentcamera_help_auto_capture_instructions">Once the picture is clear, we’ll automatically take a photo.</string>
<string name="smartcapture_documentcamera_help_manual_capture">Still struggling to take a photo, turn off Auto capture</string>

<!-- Other -->
<string name="smartcapture_documentcamera_auto_capture_enabled">Auto-capture - ON</string>
<string name="smartcapture_documentcamera_auto_capture_disabled">Auto-capture - OFF</string>
<string name="smartcapture_documentcamera_scanning_default">Position identity document within the frame below</string>
<string name="smartcapture_documentcamera_scanning_front_side">Position the FRONT SIDE of your ID within the frame below</string>
<string name="smartcapture_documentcamera_scanning_back_side">Position the BACK SIDE of your ID within the frame below</string>
<string name="smartcapture_documentcamera_captured_label">Photo captured</string>

<!-- A11y -->
<string name="smartcapture_documentcamera_camera_preview_a11y">Camera Preview</string>
<string name="smartcapture_documentcamera_help_icon_a11y">Help</string>
<string name="smartcapture_documentcamera_help_close_a11y">Close help</string>
<string name="smartcapture_documentcamera_back_icon_a11y">Back</string>
<string name="smartcapture_documentcamera_capture_icon_a11y">Manual capture</string>
<string name="smartcapture_documentcamera_auto_capture_toggle_a11y">Auto capture</string>
<string name="smartcapture_documentcamera_manual_capture_appeared_a11y">Manual capture button appeared on the bottom of the screen</string>
<string name="smartcapture_documentcamera_auto_capture_toggle_appeared_a11y">Auto capture toggle appeared on the bottom of the screen</string>
</resources>