Package org.robolectric.shadows
Class ShadowTabHost.ShadowTabSpec
- java.lang.Object
-
- org.robolectric.shadows.ShadowTabHost.ShadowTabSpec
-
- Enclosing class:
- ShadowTabHost
@Implements(android.widget.TabHost.TabSpec.class) public static class ShadowTabHost.ShadowTabSpec extends Object
-
-
Constructor Summary
Constructors Constructor Description ShadowTabSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Intent
getContentAsIntent()
View
getContentView()
int
getContentViewId()
View
getIndicatorAsView()
Drawable
getIndicatorIcon()
String
getIndicatorLabel()
protected String
getTag()
String
getText()
Same as GetIndicatorLabel()protected TabHost.TabSpec
setContent(int viewId)
protected TabHost.TabSpec
setContent(Intent intent)
protected TabHost.TabSpec
setContent(TabHost.TabContentFactory factory)
protected TabHost.TabSpec
setIndicator(View view)
protected TabHost.TabSpec
setIndicator(CharSequence label)
protected TabHost.TabSpec
setIndicator(CharSequence label, Drawable icon)
void
setTag(String tag)
Sets the tag on the TabSpec.
-
-
-
Method Detail
-
setTag
public void setTag(String tag)
Sets the tag on the TabSpec.- Parameters:
tag
- The tag.
-
getTag
@Implementation protected String getTag()
-
getIndicatorAsView
public View getIndicatorAsView()
- Returns:
- the view object set in a call to
TabSpec#setIndicator(View)
-
getIndicatorLabel
public String getIndicatorLabel()
-
getIndicatorIcon
public Drawable getIndicatorIcon()
-
getText
public String getText()
Same as GetIndicatorLabel()- Returns:
- Tab text.
-
setIndicator
@Implementation protected TabHost.TabSpec setIndicator(View view)
-
setIndicator
@Implementation protected TabHost.TabSpec setIndicator(CharSequence label)
-
setIndicator
@Implementation protected TabHost.TabSpec setIndicator(CharSequence label, Drawable icon)
-
getContentAsIntent
public Intent getContentAsIntent()
- Returns:
- the intent object set in a call to
TabSpec#setContent(Intent)
-
setContent
@Implementation protected TabHost.TabSpec setContent(Intent intent)
-
setContent
@Implementation protected TabHost.TabSpec setContent(TabHost.TabContentFactory factory)
-
setContent
@Implementation protected TabHost.TabSpec setContent(int viewId)
-
getContentViewId
public int getContentViewId()
-
getContentView
public View getContentView()
-
-