Skip to Content
Docs
Get startedPartner API v4Partner API v3Android SDK
v1.0.8

Theming

The AbleCredit SDK ships with a default light-green + black palette. You can replace any or all colours by declaring the same token names in your own res/values/colors.xml. Android's resource-merge system picks your value at build time – no SDK API call required.

How it works

  1. The SDK defines colour tokens prefixed with ablecredit_ in its own res/values/colors.xml.
  2. If your app declares a resource with the same name, the Gradle resource merge replaces the SDK's value.
  3. All SDK screens are recoloured automatically – no runtime config needed.

Colour tokens

TokenDefaultUsed for
ablecredit_primary#FF66BB6AButtons, accents (light green)
ablecredit_on_primary#FF0A0A0AText / icons on primary colour
ablecredit_accent#FF66BB6ASecondary accent (mirrors primary)
ablecredit_surface#FFFFFFFFCard / screen backgrounds
ablecredit_on_surface#FF0A0A0APrimary body text
ablecredit_text_secondary#FF5A5A5ASecondary / label text
ablecredit_text_tertiary#FF9A9A9AHint / placeholder text
ablecredit_text_muted#FF3A3A3AMuted / de-emphasised text
ablecredit_divider#FFE6E6E6List dividers, hairlines
ablecredit_disabled#FFCCCCCCDisabled controls
ablecredit_error#FFB00020Error states
ablecredit_warning#FF8A5300Warning text
ablecredit_warning_bg#FFFFF8E1Warning banner background
ablecredit_warning_stroke#FFF0D58CWarning banner border
ablecredit_mic(ablecredit_on_surface)Microphone button icon tint

Example – override primary brand colour

Add (or update) your app's res/values/colors.xml. You only need to include the tokens you want to change:

res/values/colors.xml
<resources>
    <!-- Override AbleCredit SDK brand colours -->
    <color name="ablecredit_primary">#0066FF</color>       <!-- your brand blue -->
    <color name="ablecredit_on_primary">#FFFFFF</color>    <!-- white text on blue -->
    <color name="ablecredit_accent">#0066FF</color>
</resources>

Notes

  • You do not need to override every token – unspecified tokens fall back to the SDK defaults.
  • Dark-mode variants are not currently supported by the SDK; the default palette is light-mode only.
  • The tools:replace="android:theme" entry in AndroidManifest.xml (covered in Setup & Install) ensures your app theme governs the activity chrome; the colour tokens govern the SDK's internal UI.

On this page