Condividi tramite


View.AddFocusables Method

Definition

Overloads

AddFocusables(IList<View>, FocusSearchDirection)

Add any focusable views that are descendants of this view (possibly including this view if it is focusable itself) to views.

AddFocusables(IList<View>, FocusSearchDirection, FocusablesFlags)

Adds any focusable views that are descendants of this view (possibly including this view if it is focusable itself) to views.

AddFocusables(IList<View>, FocusSearchDirection)

Add any focusable views that are descendants of this view (possibly including this view if it is focusable itself) to views.

[Android.Runtime.Register("addFocusables", "(Ljava/util/ArrayList;I)V", "GetAddFocusables_Ljava_util_ArrayList_IHandler")]
public virtual void AddFocusables (System.Collections.Generic.IList<Android.Views.View>? views, Android.Views.FocusSearchDirection direction);
[<Android.Runtime.Register("addFocusables", "(Ljava/util/ArrayList;I)V", "GetAddFocusables_Ljava_util_ArrayList_IHandler")>]
abstract member AddFocusables : System.Collections.Generic.IList<Android.Views.View> * Android.Views.FocusSearchDirection -> unit
override this.AddFocusables : System.Collections.Generic.IList<Android.Views.View> * Android.Views.FocusSearchDirection -> unit

Parameters

views
IList<View>

Focusable views found so far

direction
FocusSearchDirection

The direction of the focus

Attributes

Remarks

Add any focusable views that are descendants of this view (possibly including this view if it is focusable itself) to views. If we are in touch mode, only add views that are also focusable in touch mode.

Java documentation for android.view.View.addFocusables(java.util.ArrayList<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

AddFocusables(IList<View>, FocusSearchDirection, FocusablesFlags)

Adds any focusable views that are descendants of this view (possibly including this view if it is focusable itself) to views.

[Android.Runtime.Register("addFocusables", "(Ljava/util/ArrayList;II)V", "GetAddFocusables_Ljava_util_ArrayList_IIHandler")]
public virtual void AddFocusables (System.Collections.Generic.IList<Android.Views.View>? views, Android.Views.FocusSearchDirection direction, Android.Views.FocusablesFlags focusableMode);
[<Android.Runtime.Register("addFocusables", "(Ljava/util/ArrayList;II)V", "GetAddFocusables_Ljava_util_ArrayList_IIHandler")>]
abstract member AddFocusables : System.Collections.Generic.IList<Android.Views.View> * Android.Views.FocusSearchDirection * Android.Views.FocusablesFlags -> unit
override this.AddFocusables : System.Collections.Generic.IList<Android.Views.View> * Android.Views.FocusSearchDirection * Android.Views.FocusablesFlags -> unit

Parameters

views
IList<View>

Focusable views found so far or null if all we are interested is the number of focusables.

direction
FocusSearchDirection

The direction of the focus.

focusableMode
FocusablesFlags

The type of focusables to be added.

Attributes

Remarks

Adds any focusable views that are descendants of this view (possibly including this view if it is focusable itself) to views. This method adds all focusable views regardless if we are in touch mode or only views focusable in touch mode if we are in touch mode or only views that can take accessibility focus if accessibility is enabled depending on the focusable mode parameter.

Java documentation for android.view.View.addFocusables(java.util.ArrayList<android.view.View>, int, 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