Detailed explanation of Android using selector to change button status
•
Android
@H_ 403_ 1@Android Example explanation of changing button status with selector
Add a file in RES / drawable folder. This file sets the trigger state of the picture. You can set:
state_ pressed,state_ checked,state_ pressed,state_ selected,state_ focused,state_ Enabled and other statuses:
Android: SRC = "@ drawable / imageselector"
If the triggered control is not ImageView, but another control, it can be used in the code
Thank you for reading, hope to help you, thank you for your support to this site!
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码