다음을 통해 공유


IViewParent.KeyboardNavigationClusterSearch Method

Definition

Find the nearest keyboard navigation cluster in the specified direction.

[Android.Runtime.Register("keyboardNavigationClusterSearch", "(Landroid/view/View;I)Landroid/view/View;", "GetKeyboardNavigationClusterSearch_Landroid_view_View_IHandler:Android.Views.IViewParentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Android.Views.View? KeyboardNavigationClusterSearch (Android.Views.View? currentCluster, Android.Views.FocusSearchDirection direction);
[<Android.Runtime.Register("keyboardNavigationClusterSearch", "(Landroid/view/View;I)Landroid/view/View;", "GetKeyboardNavigationClusterSearch_Landroid_view_View_IHandler:Android.Views.IViewParentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member KeyboardNavigationClusterSearch : Android.Views.View * Android.Views.FocusSearchDirection -> Android.Views.View

Parameters

currentCluster
View

The starting point of the search. Null means the current cluster is not found yet

direction
FocusSearchDirection

Direction to look

Returns

The nearest keyboard navigation cluster in the specified direction, or null if none can be found

Attributes

Remarks

Find the nearest keyboard navigation cluster in the specified direction. This does not actually give focus to that cluster.

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