IViewParent.FocusSearch(View, FocusSearchDirection) Method

Definition

Find the nearest view in the specified direction that wants to take focus

[Android.Runtime.Register("focusSearch", "(Landroid/view/View;I)Landroid/view/View;", "GetFocusSearch_Landroid_view_View_IHandler:Android.Views.IViewParentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.View? FocusSearch (Android.Views.View? v, Android.Views.FocusSearchDirection direction);
[<Android.Runtime.Register("focusSearch", "(Landroid/view/View;I)Landroid/view/View;", "GetFocusSearch_Landroid_view_View_IHandler:Android.Views.IViewParentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member FocusSearch : Android.Views.View * Android.Views.FocusSearchDirection -> Android.Views.View

Parameters

v
View

The view that currently has focus

direction
FocusSearchDirection

One of FOCUS_UP, FOCUS_DOWN, FOCUS_LEFT, and FOCUS_RIGHT

Returns

Attributes

Remarks

Find the nearest view in the specified direction that wants to take focus

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