开发者

How to change the image of my button on pointing my mouse over it?

开发者 https://www.devze.com 2023-01-15 20:59 出处:网络
In the emu开发者_StackOverflowlator on touching my button I want its image to be changed. I just want to bring my mouse pointer there, without click. This can be observed for thr keys of the emulator.

In the emu开发者_StackOverflowlator on touching my button I want its image to be changed. I just want to bring my mouse pointer there, without click. This can be observed for thr keys of the emulator. On touch a blue image appears on the keys.


You can use a Selector.

Check this tutorial.


There is no mouse in Android - hence there is no mouse-over, so the effect which you mentioned regarding the emulator keys is not applicable for Android applications

You could just react on focused and pressed events

0

精彩评论

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