Friday, December 2, 2022
HomeAndroidWear OS Tiles Material Collection: Create Tiles Quickly

Wear OS Tiles Material Collection: Create Tiles Quickly


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()

)

Trending Articles

RELATED ARTICLES
Continue to the category

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -spot_img

Most Popular

CATEGORIES