UX & Branding

All the properties that define the layout are based on native Android xml files. Below we describe all the elements of the layout that can be customized and related configurations.

Element 1: Add the following item in your values/integers.xml. It applies to all the pages:

<item name="uq_status_bar_color" type="color">define_your_new_color</item>

Element 2: Add the following item in your values/integers.xml. It applies to all the pages:

<item name="uq_background_drawable" type="drawable">
        @drawable/your_vector_or_drawable_background
</item>

Element 3: Add the following item in your values/integers.xml. It applies to all the pages:

<item name="uq_back_arrow_style_image" type="drawable">
	@drawable/your_new_drawables_here
</item>

Element 4: Add the following item in your values/integers.xml. It applies to all the pages:

<item name="uq_logo_icon" type="drawable">@drawable/your_drawable</item>

If you want to hide the logs add the following style in your values/styles.xml:

<style name="uq_logo_style">
	<item name="android:visibility">gone</item>
</style>

Instructions for Scanning

Element 5: Add the following item in your values/integers.xml:

Note: PNG and JPEG are supported as well

If you want to add additional styles you can add the following style in your values/styles.xml:

Element 6: Add the following style in your values/styles.xml:

If you want to move the title and description above the animation, follow the steps below:

  • From our default style uq_help_text_title_style (you need to override the style as described above) remove @id/image

  • To our default style uq_help_scan_animation_style (you need to override the style as described above) add @id/description

Element 7: Add the following style in your values/styles.xml:

In order to change or hide the button arrow add the following item in your values/items.xml:

Instructions for Reading

Element 1: Add the following style in your values/styles.xml:

Element 2: Add the following item in your values/integers.xml:

Element 3: Add the following style in your values/styles.xml (Only available for passport):

Help for Reading of Passport

Element 1: Add the following item/s in your values/integers.xml:

Element 2: Add the following style in your values/styles.xml:

Element 3: Add the following colors in your values/colors.xml:

Progress Screen

Element 1: Add the following style in your values/styles.xml:

Element 2: Add the following style in your values/styles.xml:

Element 1: Add the following style in your values/styles.xml:

Element 2: Add the following style in your values/styles.xml:

Face Match Error

Element 1, 2, 3, 4 and 5: Add the following item/s in your values/integers.xml:

Fonts

In order to override the default font family used in the SDK create the following files in your font/ directory and define your own font (see https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml):

  • bold.xml

  • medium.xml

  • regular.xml

  • semi_bold.xml

Default Style Definitions

Below you can find the default style definitions for the style names mentioned above:

Last updated

Was this helpful?