質問

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?

役に立ちましたか?

解決

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

他のヒント

No this is the default toggleButton.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top