Compartilhar via


TabHost.SetCurrentTabByTag(String) Method

Definition

Sets the current tab based on its tag.

[Android.Runtime.Register("setCurrentTabByTag", "(Ljava/lang/String;)V", "GetSetCurrentTabByTag_Ljava_lang_String_Handler")]
public virtual void SetCurrentTabByTag (string? tag);
[<Android.Runtime.Register("setCurrentTabByTag", "(Ljava/lang/String;)V", "GetSetCurrentTabByTag_Ljava_lang_String_Handler")>]
abstract member SetCurrentTabByTag : string -> unit
override this.SetCurrentTabByTag : string -> unit

Parameters

tag
String

the tag for the tab to set as current

Attributes

Remarks

Sets the current tab based on its tag.

Java documentation for android.widget.TabHost.setCurrentTabByTag(java.lang.String).

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