Most visited

Recently visited

Added in API level 14

View.OnHoverListener

public static interface View.OnHoverListener

android.view.View.OnHoverListener


将悬停事件分派到此视图时要调用的回调的接口定义。 在将悬停事件提供给视图之前,将调用回调。

Summary

Public methods

abstract boolean onHover(View v, MotionEvent event)

在将悬停事件分派给视图时调用。

Public methods

onHover

Added in API level 14
boolean onHover (View v, 
                MotionEvent event)

在将悬停事件分派给视图时调用。 这使听众有机会在目标视图之前做出回应。

Parameters
v View: The view the hover event has been dispatched to.
event MotionEvent: The MotionEvent object containing full information about the event.
Returns
boolean True if the listener has consumed the event, false otherwise.

Hooray!