Udostępnij za pośrednictwem


View.DispatchUnhandledMove(View, FocusSearchDirection) Method

Definition

This method is the last chance for the focused view and its ancestors to respond to an arrow key.

[Android.Runtime.Register("dispatchUnhandledMove", "(Landroid/view/View;I)Z", "GetDispatchUnhandledMove_Landroid_view_View_IHandler")]
public virtual bool DispatchUnhandledMove (Android.Views.View? focused, Android.Views.FocusSearchDirection direction);
[<Android.Runtime.Register("dispatchUnhandledMove", "(Landroid/view/View;I)Z", "GetDispatchUnhandledMove_Landroid_view_View_IHandler")>]
abstract member DispatchUnhandledMove : Android.Views.View * Android.Views.FocusSearchDirection -> bool
override this.DispatchUnhandledMove : Android.Views.View * Android.Views.FocusSearchDirection -> bool

Parameters

focused
View

The currently focused view.

direction
FocusSearchDirection

The direction focus wants to move. One of FOCUS_UP, FOCUS_DOWN, FOCUS_LEFT, and FOCUS_RIGHT.

Returns

True if the this view consumed this unhandled move.

Attributes

Remarks

This method is the last chance for the focused view and its ancestors to respond to an arrow key. This is called when the focused view did not consume the key internally, nor could the view system find a new view in the requested direction to give focus to.

Java documentation for android.view.View.dispatchUnhandledMove(android.view.View, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to