FocusFinder.FindNextFocusFromRect Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.