다음을 통해 공유


FocusFinder.FindNextFocusFromRect Method

Definition

Find the next view to take focus in root's descendants, searching from a particular rectangle in root's coordinates.

[Android.Runtime.Register("findNextFocusFromRect", "(Landroid/view/ViewGroup;Landroid/graphics/Rect;I)Landroid/view/View;", "GetFindNextFocusFromRect_Landroid_view_ViewGroup_Landroid_graphics_Rect_IHandler")]
public virtual Android.Views.View? FindNextFocusFromRect (Android.Views.ViewGroup? root, Android.Graphics.Rect? focusedRect, Android.Views.FocusSearchDirection direction);
[<Android.Runtime.Register("findNextFocusFromRect", "(Landroid/view/ViewGroup;Landroid/graphics/Rect;I)Landroid/view/View;", "GetFindNextFocusFromRect_Landroid_view_ViewGroup_Landroid_graphics_Rect_IHandler")>]
abstract member FindNextFocusFromRect : Android.Views.ViewGroup * Android.Graphics.Rect * Android.Views.FocusSearchDirection -> Android.Views.View
override this.FindNextFocusFromRect : Android.Views.ViewGroup * Android.Graphics.Rect * Android.Views.FocusSearchDirection -> Android.Views.View

Parameters

root
ViewGroup

Contains focusedRect. Cannot be null.

focusedRect
Rect

The starting point of the search.

direction
FocusSearchDirection

Direction to look.

Returns

The next focusable view, or null if none exists.

Attributes

Remarks

Find the next view to take focus in root's descendants, searching from a particular rectangle in root's coordinates.

Java documentation for android.view.FocusFinder.findNextFocusFromRect(android.view.ViewGroup, android.graphics.Rect, 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