Class ShadowTabHost.ShadowTabSpec

  • Enclosing class:
    ShadowTabHost

    @Implements(android.widget.TabHost.TabSpec.class)
    public static class ShadowTabHost.ShadowTabSpec
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ShadowTabSpec()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      android.content.Intent getContentAsIntent()  
      android.view.View getContentView()  
      int getContentViewId()  
      android.view.View getIndicatorAsView()  
      android.graphics.drawable.Drawable getIndicatorIcon()  
      java.lang.String getIndicatorLabel()  
      protected java.lang.String getTag()  
      java.lang.String getText()
      Same as GetIndicatorLabel()
      protected android.widget.TabHost.TabSpec setContent​(int viewId)  
      protected android.widget.TabHost.TabSpec setContent​(android.content.Intent intent)  
      protected android.widget.TabHost.TabSpec setContent​(android.widget.TabHost.TabContentFactory factory)  
      protected android.widget.TabHost.TabSpec setIndicator​(android.view.View view)  
      protected android.widget.TabHost.TabSpec setIndicator​(java.lang.CharSequence label)  
      protected android.widget.TabHost.TabSpec setIndicator​(java.lang.CharSequence label, android.graphics.drawable.Drawable icon)  
      void setTag​(java.lang.String tag)
      Sets the tag on the TabSpec.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShadowTabSpec

        public ShadowTabSpec()
    • Method Detail

      • setTag

        public void setTag​(java.lang.String tag)
        Sets the tag on the TabSpec.
        Parameters:
        tag - The tag.
      • getTag

        @Implementation
        protected java.lang.String getTag()
      • getIndicatorAsView

        public android.view.View getIndicatorAsView()
        Returns:
        the view object set in a call to TabSpec#setIndicator(View)
      • getIndicatorLabel

        public java.lang.String getIndicatorLabel()
      • getIndicatorIcon

        public android.graphics.drawable.Drawable getIndicatorIcon()
      • getText

        public java.lang.String getText()
        Same as GetIndicatorLabel()
        Returns:
        Tab text.
      • setIndicator

        @Implementation
        protected android.widget.TabHost.TabSpec setIndicator​(android.view.View view)
      • setIndicator

        @Implementation
        protected android.widget.TabHost.TabSpec setIndicator​(java.lang.CharSequence label)
      • setIndicator

        @Implementation
        protected android.widget.TabHost.TabSpec setIndicator​(java.lang.CharSequence label,
                                                              android.graphics.drawable.Drawable icon)
      • getContentAsIntent

        public android.content.Intent getContentAsIntent()
        Returns:
        the intent object set in a call to TabSpec#setContent(Intent)
      • setContent

        @Implementation
        protected android.widget.TabHost.TabSpec setContent​(android.content.Intent intent)
      • setContent

        @Implementation
        protected android.widget.TabHost.TabSpec setContent​(android.widget.TabHost.TabContentFactory factory)
      • setContent

        @Implementation
        protected android.widget.TabHost.TabSpec setContent​(int viewId)
      • getContentViewId

        public int getContentViewId()
      • getContentView

        public android.view.View getContentView()