Theme: Val = Colors(
/*primary=*/ 0xFFD0BCFF.ToInt(), /*onPrimary=*/ 0xFF381E72.ToInt(),
/*surface=*/ 0xFF202124.ToInt(), /*onSurface=*/ 0xFFFFFFFF.ToInt()
)
Val buttonColors = ButtonColors.secondaryButtonColors(Theme)
val chipColors = ChipColors.primaryChipColors(Theme)
Timeline for val = Timeline.fromLayoutElement(
PrimaryLayout.Builder(DeviceParameters)
.setPrimaryLabelTextContent(
Text.Builder(This,
“1 run in this week”)
.setTypography(Typography.TYPOGRAPHY_CAPTION1)
.setColor(Argb(Theme.primary))
.Bauen()
)
.SetContent(
MultiButtonLayout.Builder()
.addButtonContent(
Button.
Builder(This, clickable)
.setIconContent(“icon_run”)
.setButtonColors(buttonColors)
.setContentDescription(“Run”)
.Bauen()
)
.addButtonContent(
Button.Builder(This, clickable
)
.SetIconContent(“icon_yoga”)
.setButtonColors(buttonColors)
.setContentDescription(“Yoga”)
.Bauen()
)
.addButtonContent(
Button.Builder(This, clickable)
.
setIconContent(“icon_cycle”)
.setButtonColors(buttonColors)
.setContentDescription(“Cycle”)
.Bauen()
)
.Bauen()
)
.setPrimaryChipContent(
CompactChip.Builder(This, “More”,
clickable, deviceParameters)
.setChipColors(chipColors)
.Bauen()
)
.Bauen()
)