Skip to main content
This guide is designed to help you style our default Universal Checkout UI. If you would like to build your own UI from scratch then check out our Headless Universal Checkout guide.

Localization and languages

Universal Checkout supports multiple languages out of the box, enabling you to adapt its UI to the relevant market.
Universal Checkout uses the device language by default. If this language is not supported, Universal Checkout automatically falls back to English.

Supported locales

Right-to-left

Universal Checkout automatically switches to a right-to-left layout when necessary. The fastest way to add custom colors and dimensions to the Android SDK is to override the SDK’s resource values. To learn more see the complete set of resources below or check out one of our theming examples:

Colors

Dimensions

Dark Theme

Dark Theme

Dynamic Styling with Resources

Apart from overriding Primer SDK resource colors and dimensions, it’s also possible to achieve a custom theme by passing in references to your app’s resources when defining the SDK’s PrimerTheme object in Kotlin/Java.

XML Resource

YourActivity.kt

Kotlin