How can I get the color of the button? I can set the color with "btn1.Color = Colors.White", I can’t find out what color the button is now using the condition "If btn1.Color = Colors.White Then" How can I do this?
And how can I change the color of the button while maintaining the property that when the button is pressed, it also changes color? For example, I have a green button, when pressed it darkens a little, I change the color to red and now it darkens a little when pressed.
StateListDrawable is a drawable objects that holds other drawables. Based on the view's current state a child drawable is selected. StateListDrawable holds a list of states. States can be "disabled", "enabled", "checked" and so on. A state can also be a combination of other states (like enabled...