TabHost.TabSpec.SetContent 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.
Overloads
SetContent(Intent) |
Specify an intent to use to launch an activity as the tab content. |
SetContent(TabHost+ITabContentFactory) |
Specify a T:Android.Widget.TabHost+ITabContentFactory to use to create the content of the tab. |
SetContent(Int32) |
Specify the id of the view that should be used as the content of the tab. |
SetContent(Intent)
Specify an intent to use to launch an activity as the tab content.
[Android.Runtime.Register("setContent", "(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;", "GetSetContent_Landroid_content_Intent_Handler")]
public virtual Android.Widget.TabHost.TabSpec SetContent (Android.Content.Intent intent);
[<Android.Runtime.Register("setContent", "(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;", "GetSetContent_Landroid_content_Intent_Handler")>]
abstract member SetContent : Android.Content.Intent -> Android.Widget.TabHost.TabSpec
override this.SetContent : Android.Content.Intent -> Android.Widget.TabHost.TabSpec
Parameters
- intent
- Intent
Returns
- Attributes
Remarks
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
SetContent(TabHost+ITabContentFactory)
Specify a T:Android.Widget.TabHost+ITabContentFactory to use to create the content of the tab.
[Android.Runtime.Register("setContent", "(Landroid/widget/TabHost$TabContentFactory;)Landroid/widget/TabHost$TabSpec;", "GetSetContent_Landroid_widget_TabHost_TabContentFactory_Handler")]
public virtual Android.Widget.TabHost.TabSpec SetContent (Android.Widget.TabHost.ITabContentFactory contentFactory);
[<Android.Runtime.Register("setContent", "(Landroid/widget/TabHost$TabContentFactory;)Landroid/widget/TabHost$TabSpec;", "GetSetContent_Landroid_widget_TabHost_TabContentFactory_Handler")>]
abstract member SetContent : Android.Widget.TabHost.ITabContentFactory -> Android.Widget.TabHost.TabSpec
override this.SetContent : Android.Widget.TabHost.ITabContentFactory -> Android.Widget.TabHost.TabSpec
Parameters
- contentFactory
- TabHost.ITabContentFactory
Returns
- Attributes
Remarks
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
SetContent(Int32)
Specify the id of the view that should be used as the content of the tab.
[Android.Runtime.Register("setContent", "(I)Landroid/widget/TabHost$TabSpec;", "GetSetContent_IHandler")]
public virtual Android.Widget.TabHost.TabSpec SetContent (int viewId);
[<Android.Runtime.Register("setContent", "(I)Landroid/widget/TabHost$TabSpec;", "GetSetContent_IHandler")>]
abstract member SetContent : int -> Android.Widget.TabHost.TabSpec
override this.SetContent : int -> Android.Widget.TabHost.TabSpec
Parameters
- viewId
- Int32
Returns
- Attributes
Remarks
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.