Thread
#compose-wear
    b

    bod

    2 months ago
    Another question: the recommended way to have toggles in a settings-like screen is to use
    ToggleChip
    with
    ToggleChipDefaults.switchIcon
    , correct? Is there a way to animate the toggle switch?
    Kseniia Shumelchyk

    Kseniia Shumelchyk

    2 months ago
    We don’t enforce specific types for settings-like screen, so any toggle chips will be a good fit for that depending on your needs (see https://developer.android.com/training/wearables/compose/toggle-chips#usage for some examples). There is a default animation when you toggle on/off switch, do you want to do something custom?
    b

    bod

    2 months ago
    Well the toggle itself is not animated. Whereas in the system settings for instance, they are
    John Nichol

    John Nichol

    2 months ago
    We have an item to look at adding animation in 1.1. - However given that the toggle control is a slot you can look at doing it yourself. I will try to remember to put a sample together tomorrow
    b

    bod

    2 months ago
    I've tried putting a regular material Switch in there - it's animated but it's "a bit" oversized 😂
    y

    yschimke

    2 months ago
    Can you scale it?
    b

    bod

    2 months ago
    I tried setting its size which had no effect, but haven't tried scaling, that might work 💡