How can i change the image of image button when mouse or finger is over it
A:
On touch screen devices, there is no :hover
attribute like web pages have (i.e. when your mouse hovers over a link, the button changes color or something). This is because there is no mouse. Your finger is either pushing down on something (like a button), or it's not.
However you can detect the different states of touching the screen. Android can tell you when someone is pushing their finger down on the screen, lifting their finger up from the screen, or moving their finger around on the screen, etc.
Use an Event Listener to detect when someone touches the screen, then check what the specific motion was. Update your view accordingly. The example code from those links, should be enough to get you started :)
Finer Recliner
2010-10-14 14:44:54
thank you very much!!!!!!
sruthi
2010-10-15 03:48:25