Another question: the recommended way to have togg...
# compose-wear
b
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?
k
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?
message has been deleted
b
Well the toggle itself is not animated. Whereas in the system settings for instance, they are
j
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
🙏 1
b
I've tried putting a regular material Switch in there - it's animated but it's "a bit" oversized 😂
y
Can you scale it?
b
I tried setting its size which had no effect, but haven't tried scaling, that might work 💡