Partager via


View.FindViewWithTag(Object) Method

Definition

Look for a child view with the given tag.

[Android.Runtime.Register("findViewWithTag", "(Ljava/lang/Object;)Landroid/view/View;", "")]
public Android.Views.View? FindViewWithTag (Java.Lang.Object? tag);
[<Android.Runtime.Register("findViewWithTag", "(Ljava/lang/Object;)Landroid/view/View;", "")>]
member this.FindViewWithTag : Java.Lang.Object -> Android.Views.View

Parameters

tag
Object

The tag to search for, using "tag.equals(getTag())".

Returns

The View that has the given tag in the hierarchy or null

Attributes

Remarks

Look for a child view with the given tag. If this view has the given tag, return this view.

Java documentation for android.view.View.findViewWithTag(java.lang.Object).

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