Android Programming Press on the image to return to the main documentation page.

TabHostExtras

Written by Martin Pearman

List of types:

TabHostExtras

TabHostExtras


Events:

None

Members:


  getTabContentViewPadding (tabHost1 As android.widget.TabHost) As RectWrapper

  getTabEnabled (tabHost1 As android.widget.TabHost, index As Int) As Boolean

  getTabHeight (tabHost1 As android.widget.TabHost) As Int

  getTabHostPadding (tabHost1 As android.widget.TabHost) As RectWrapper

  getTabIcon (tabHost1 As android.widget.TabHost, TabIndex As Int) As ImageViewWrapper

  getTabTextSize (tabHost1 As android.widget.TabHost) As Float

  getTabVisibility (tabHost1 As android.widget.TabHost, index As Int) As Boolean

  setTabContentViewPadding (tabHost1 As android.widget.TabHost, left As Int, top As Int, right As Int, bottom As Int)

  setTabEnabled (tabHost1 As android.widget.TabHost, enabled As Boolean)

  setTabEnabled2 (tabHost1 As android.widget.TabHost, enabled As Boolean, index As Int)

  setTabGradientDrawable (tabHost1 As android.widget.TabHost, orientation As String, color1 As Int, color2 As Int, cornerRadius As Float)

  setTabGradientDrawable2 (tabHost1 As android.widget.TabHost, orientation As String, color1 As Int, color2 As Int, cornerRadius() As Float)

  setTabHeight (tabHost1 As android.widget.TabHost, tabHeight As Int)

  setTabHostPadding (tabHost1 As android.widget.TabHost, left As Int, top As Int, right As Int, bottom As Int)

  setTabTextColor (tabHost1 As android.widget.TabHost, Color As Int)

  setTabTextColorStateList (tabHost1 As android.widget.TabHost, ColorStateListName As String)

  setTabTextSize (tabHost1 As android.widget.TabHost, TextSize As Float)

  setTabTitle (tabHost1 As android.widget.TabHost, Title As String, TabIndex As Int)

  setTabVisibility (tabHost1 As android.widget.TabHost, visible As Boolean)

  setTabVisibility2 (tabHost1 As android.widget.TabHost, visible As Boolean, index As Int)

Members description:

getTabContentViewPadding (tabHost1 As android.widget.TabHost) As RectWrapper
Get the layout padding of tabHost1 TabContentView
Returns a Rect object containing pixel values
getTabEnabled (tabHost1 As android.widget.TabHost, index As Int) As Boolean
Get the Enabled state of TabIndicator #index in tabHost1
getTabHeight (tabHost1 As android.widget.TabHost) As Int
Get the height (in pixels) of the TabIndicators in tabHost1
getTabHostPadding (tabHost1 As android.widget.TabHost) As RectWrapper
Get the layout padding of tabHost1 container View
Returns a Rect object containing pixel values
getTabIcon (tabHost1 As android.widget.TabHost, TabIndex As Int) As ImageViewWrapper
Get the (icon) ImageView of TabIndicator #TabIndex in tabHost1
getTabTextSize (tabHost1 As android.widget.TabHost) As Float
Get the text size (in pixels) of all TabIndicators
getTabVisibility (tabHost1 As android.widget.TabHost, index As Int) As Boolean
Get the visibility of TabIndicators #index in tabHost1
setTabContentViewPadding (tabHost1 As android.widget.TabHost, left As Int, top As Int, right As Int, bottom As Int)
Set the layout padding (in dip) of tabHost1 TabContentView
setTabEnabled (tabHost1 As android.widget.TabHost, enabled As Boolean)
Enable or disable all TabIndicators in tabHost1
setTabEnabled2 (tabHost1 As android.widget.TabHost, enabled As Boolean, index As Int)
Enable or disable TabIndicator #index in tabHost1
setTabGradientDrawable (tabHost1 As android.widget.TabHost, orientation As String, color1 As Int, color2 As Int, cornerRadius As Float)
Set a GradientDrawable as the background on all TabIndicators in tabHost1
All fours corner radii of the GradientDrawable are set to the value of cornerRadius (in pixels)
setTabGradientDrawable2 (tabHost1 As android.widget.TabHost, orientation As String, color1 As Int, color2 As Int, cornerRadius() As Float)
Set a GradientDrawable as the background on all TabIndicators in tabHost1
Corner radii of the GradientDrawable are set individually (in pixels) based upon the number of elements in the array cornerRadius:
1 element defines all corner radii
2 elements define corner radii in order top left and right, bottom left and right
4 elements define corner radii in order top-left, top-right, bottom-right, bottom-left
setTabHeight (tabHost1 As android.widget.TabHost, tabHeight As Int)
Set the height (in pixels) of all TabIndicators in tabHost1
setTabHostPadding (tabHost1 As android.widget.TabHost, left As Int, top As Int, right As Int, bottom As Int)
Set the layout padding (in dip) of tabHost1 container View
setTabTextColor (tabHost1 As android.widget.TabHost, Color As Int)
Set the color to be used for all tab indicators text.
This color will be used for all tab indicators regardless of their selected state.
setTabTextColorStateList (tabHost1 As android.widget.TabHost, ColorStateListName As String)
Set a ColorStateList to be used for the text color of all tab indicators.
The ColorStateList must be defined in XML in your application Objects/res/drawable folder.
Color for selected and not selected tab state can be defined.
setTabTextSize (tabHost1 As android.widget.TabHost, TextSize As Float)
Set the text size of all TabIndicators
TextSize is assumed to be in units of dip.
setTabTitle (tabHost1 As android.widget.TabHost, Title As String, TabIndex As Int)
Set the Title text of TabIndicator #TabIndex in tabHost1
setTabVisibility (tabHost1 As android.widget.TabHost, visible As Boolean)
Set the visibility of all TabIndicators in tabHost1
setTabVisibility2 (tabHost1 As android.widget.TabHost, visible As Boolean, index As Int)
Set the visibility of TabIndicator #index in tabHost1
Top