Detailed explanation of Android using selector to change button status

@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
分享
二维码
< <上一篇
下一篇>>