开发者

Change shape and color of ToggleButton(or maybe somthing else)?

I wa开发者_运维百科nt a togglebutton that looks like a fire or spark. I want to indicate when the button is selected and when its not. As far as I know this can be done using a Selector-drawable. Now I want to change color of the "fire" on my button from code. And I want the color to be changed in both the selected and the unselected drawable.

How can I achieve this?


So late, but to next's... the answer is at... ToggleButton shape not changing

I hope that will be util


You can use a ToggleButton and just change the drawable to like like whatever you want. You'll need to create a stateful drawable. You can get some information about that at this link.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜