http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/Hover.html
Hover events
TheView
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 theView.OnHoverListener
and register it withsetOnHoverListener()
. When a hover event occurs on the view, your listener receives a call toonHover()
, providing theView
that received the event and aMotionEvent
that describes the type of hover event that occurred. The hover event can be one of the following:
No comments:
Post a Comment