Compartilhar via


View.FindViewsWithText Method

Definition

Overloads

FindViewsWithText(IList<View>, ICharSequence, FindViewsWith)

Finds the Views that contain given text.

FindViewsWithText(IList<View>, String, FindViewsWith)

Finds the Views that contain given text.

FindViewsWithText(IList<View>, ICharSequence, FindViewsWith)

Finds the Views that contain given text.

[Android.Runtime.Register("findViewsWithText", "(Ljava/util/ArrayList;Ljava/lang/CharSequence;I)V", "GetFindViewsWithText_Ljava_util_ArrayList_Ljava_lang_CharSequence_IHandler")]
public virtual void FindViewsWithText (System.Collections.Generic.IList<Android.Views.View>? outViews, Java.Lang.ICharSequence? searched, Android.Views.FindViewsWith flags);
[<Android.Runtime.Register("findViewsWithText", "(Ljava/util/ArrayList;Ljava/lang/CharSequence;I)V", "GetFindViewsWithText_Ljava_util_ArrayList_Ljava_lang_CharSequence_IHandler")>]
abstract member FindViewsWithText : System.Collections.Generic.IList<Android.Views.View> * Java.Lang.ICharSequence * Android.Views.FindViewsWith -> unit
override this.FindViewsWithText : System.Collections.Generic.IList<Android.Views.View> * Java.Lang.ICharSequence * Android.Views.FindViewsWith -> unit

Parameters

outViews
IList<View>

The output list of matching Views.

searched
ICharSequence

The text to match against.

Attributes

Remarks

Finds the Views that contain given text. The containment is case insensitive. The search is performed by either the text that the View renders or the content description that describes the view for accessibility purposes and the view does not render or both. Clients can specify how the search is to be performed via passing the #FIND_VIEWS_WITH_TEXT and #FIND_VIEWS_WITH_CONTENT_DESCRIPTION flags.

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

FindViewsWithText(IList<View>, String, FindViewsWith)

Finds the Views that contain given text.

public void FindViewsWithText (System.Collections.Generic.IList<Android.Views.View>? outViews, string? searched, Android.Views.FindViewsWith flags);
member this.FindViewsWithText : System.Collections.Generic.IList<Android.Views.View> * string * Android.Views.FindViewsWith -> unit

Parameters

outViews
IList<View>

The output list of matching Views.

searched
String

The text to match against.

Remarks

Finds the Views that contain given text. The containment is case insensitive. The search is performed by either the text that the View renders or the content description that describes the view for accessibility purposes and the view does not render or both. Clients can specify how the search is to be performed via passing the #FIND_VIEWS_WITH_TEXT and #FIND_VIEWS_WITH_CONTENT_DESCRIPTION flags.

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