Question

How do I create a ToggleButton's below the repeat checkbox (Mon, Tue, Wed etc) in the Clock application? I'm thinking its a styled ToggleButton?

Clock Toggle Buttons?

Was it helpful?

Solution

It's a few nine patch drawables and a custom selector drawable. The source can be found here: https://android.googlesource.com/platform/packages/apps/DeskClock/+/master/res/

Notable files:

drawable/toggle_underline.xml

drawable-XXXX/toggle_underline_activated.9.png

drawable-XXXX/toggle_underline_normal.9.png

layout/day-button.xml

OTHER TIPS

No this is the default toggleButton.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top