Thursday, March 29, 2012

Android : hovering event


Hover events

The View class now supports “hover" events to enable richer interactions through the use of pointer devices (such as a mouse or other devices that drive an on-screen cursor).
To receive hover events on a view, implement the View.OnHoverListener and register it withsetOnHoverListener(). When a hover event occurs on the view, your listener receives a call toonHover(), providing the View that received the event and a MotionEvent that describes the type of hover event that occurred. The hover event can be one of the following:



No comments:

Related Posts Plugin for WordPress, Blogger...