次の方法で共有


ViewGroup.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")]
public virtual Android.Views.View? FocusSearch (Android.Views.View? focused, Android.Views.FocusSearchDirection direction);
[<Android.Runtime.Register("focusSearch", "(Landroid/view/View;I)Landroid/view/View;", "GetFocusSearch_Landroid_view_View_IHandler")>]
override this.FocusSearch : Android.Views.View * Android.Views.FocusSearchDirection -> Android.Views.View

Parameters

focused
View

The view that currently has focus

direction
FocusSearchDirection

One of FOCUS_UP, FOCUS_DOWN, FOCUS_LEFT, and FOCUS_RIGHT, or 0 for not applicable.

Returns

Implements

Attributes

Remarks

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

Java documentation for android.view.ViewGroup.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