Skip to content

Appearance

Typecom.tryyoursize:tryyoursize-android

Colours (ARGB ints), font and corner radius for the button and the window. With INHERIT (default) they follow your app theme, dark included.

themeThemeOptional= Theme.INHERIT
colorPrimaryInt?Optional= null

ARGB colour ints (android.graphics.Color / Compose toArgb()). Buttons, the tape line, the "connected" dot.

colorBackgroundInt?Optional= null
colorTextInt?Optional= null
fontFamilyString?Optional= null

A CSS font-family for the window (e.g. "Inter, Roboto, sans-serif"). The native button uses the Compose text style where it is placed.

borderRadiusFloat?Optional= null

Corner radius in dp (0–32) for cards, inputs and buttons.

fontsList<String>Optional= emptyList()

Stylesheets with @font-face rules for the window (Google Fonts only).

val tys = TryYourSize(context, "pk_test_…", TryYourSize.Configuration(
appearance = Appearance(borderRadius = 10f),
locale = "es",
))

Was this page helpful?