Android Question Button check state and dynamically change color

Tasyo28

Member
Licensed User
Hi,

Can somebody help me to achieve this:

Initially, the button will be like this:
upload_2019-8-28_9-13-17.png

When clicked it should be like this:
upload_2019-8-28_9-14-1.png


- to change the color of the button when clicked (change color and add border)
(note: button created in designer)
- to check button state if the color is gold or grey
if button1.color = "gold or grey" then
....
else
....
endif


I hope somebody can advise how can I do it in B4a thanks.
 
Top