Skip to main content

Theme

The built-in screens use Android resources that you can override from your app. You change the look and feel without writing any UI code, and keep the SDK's capture logic and guidance.

Colours and sizes​

Pick a screen and adjust its colours or sizes: the preview shows where each value is used. The editor generates res/values/colors.xml, res/values/dimens.xml or res/values/themes.xml with the values you changed, ready to add to your app. Everything else keeps the SDK default.

Looking for the edges of the document

Schematic preview

Detection screen of the document scan. The overlay and frame resources are also used in Video: document.

  • background_default_colorDetection overlay
    #95000000
  • rectangle_default_colorDetection frame while looking for the document
    #FFFFFF
  • rectangle_detect_colorDetection frame while it detects the document
    #3FC336
  • rectangle_detector_border_sizeDocument detector frame width
    4dp
  • text_colorFeedback text during document detection
    #FFFFFF
  • ms_document_text_sizeDocument feedback message size
    14sp
res/values/colors.xml

Change a value to generate the file with your theme.

  • Texts — change and translate the messages.