For the complete documentation index, see llms.txt. This page is also available as Markdown.

Customization

This guide explains how to customize the appearance of the SDK in your Android applications. It is recommended to apply the modifications in both the light and dark (night) themes.

To change the main colors and the SDK logo:

  1. Create a file sdk_styles.xml in the client application.

  2. Add or modify the value hex (RGB) color and logo:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- SdkTheme -->
    <color name="sdkPrimaryColor">#7636FC</color>
    <color name="sdkSecondaryColor">#03DAC5</color>
    <color name="sdkBackgroundColor">#FFFFFF</color>
    <color name="sdkErrorColor">#DD3631</color>
    <!-- SdkColorsPalette -->
    <color name="sdkTitleTextColor">#1D2C4D</color>
    <color name="sdkBodyTextColor">#526080</color>
    <color name="sdkSuccessColor">#07A13A</color>
    <color name="sdkNeutralColor">#202C4B</color>
    <color name="sdkAccentColor">#EA7547</color>
    <color name="sdkTopIconsColor">#243760</color>
    <color name="sdkButtonTextColor">#FFFFFF</color>
    <!-- SDK BUTTONS -->
    <dimen name="sdk_buttons_corner_dimen">32dp</dimen>
    <!-- SDK LOGO -->
    <drawable name="sdk_logo">@drawable/ic_demo_logo</drawable>

  <!-- ..Add particulars of each component... -->

</resources>
  • The main colors that also affect animations are: sdkPrimaryColor, sdkErrorColor, sdkSuccessColor, sdkNeutralColor, sdkAccentColor.

  • To include the logo you must add the following line to the file, with the configured name.

Vector format (.xml).

The Selphi and SelphID components include their associated resource zip, which remains separate from this SDK feature.

Animations

The Lottie files can be overwritten by placing the new files in res/raw/ with the same names:

Texts

Create an XML file with the strings to overwrite:

Fonts

  • Add the files .ttf in the folder res/font/.

  • Assign the exact name expected by the SDK. If the name does not match, the font will not be applied.

Top bar icons

To customize the top bar icons, create the resources in res/drawable/ with the following names:

Images for the permission request and diagnostics screens

To customize the images that appear on the permission request and diagnostics screens, create the resources in res/drawable/ with the following names:

Last updated