开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜