Share via


View.FocusSearch(FocusSearchDirection) Method

Definition

Find the nearest view in the specified direction that can take focus.

[Android.Runtime.Register("focusSearch", "(I)Landroid/view/View;", "GetFocusSearch_IHandler")]
public virtual Android.Views.View? FocusSearch (Android.Views.FocusSearchDirection direction);
[<Android.Runtime.Register("focusSearch", "(I)Landroid/view/View;", "GetFocusSearch_IHandler")>]
abstract member FocusSearch : Android.Views.FocusSearchDirection -> Android.Views.View
override this.FocusSearch : Android.Views.FocusSearchDirection -> Android.Views.View

Parameters

direction
FocusSearchDirection

One of FOCUS_UP, FOCUS_DOWN, FOCUS_LEFT, and FOCUS_RIGHT

Returns

The nearest focusable in the specified direction, or null if none can be found.

Attributes

Remarks

Find the nearest view in the specified direction that can take focus. This does not actually give focus to that view.

Java documentation for android.view.View.focusSearch(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