package com.xtremelabs.robolectric.shadows;

import android.content.Intent;
import android.view.View;
import android.widget.TabHost;
import com.xtremelabs.robolectric.internal.Implementation;
import com.xtremelabs.robolectric.internal.Implements;
import com.xtremelabs.robolectric.internal.RealObject;

@SuppressWarnings({"UnusedDeclaration"})
@Implements(TabHost.TabSpec.class)
public class ShadowTabSpec {

    @RealObject
    TabHost.TabSpec realObject;
    private String tag;
    private View indicatorView;
    private Intent intent;

    /**
     * Non-Android accessor, sets the tag on the TabSpec
     */
    public void setTag(String tag) {
        this.tag = tag;
    }

    @Implementation
    public java.lang.String getTag() {
        return tag;
    }

    /**
     * Non-Android accessor
     *
     * @return the view object set in a call to {@code TabSpec#setIndicator(View)}
     */
    public View getIndicatorAsView() {
        return this.indicatorView;
    }

    @Implementation
    public TabHost.TabSpec setIndicator(View view) {
        this.indicatorView = view;
        return realObject;
    }

    /**
     * Non-Android accessor
     *
     * @return the intent object set in a call to {@code TabSpec#setContent(Intent)}
     */
    public Intent getContentAsIntent() {
        return intent;
    }

    @Implementation
    public android.widget.TabHost.TabSpec setContent(Intent intent) {
        this.intent = intent;
        return realObject;
    }
}

@@ -69,16 +69,59 @@
 Intent;%0A
+import android.graphics.drawable.Drawable;%0A
 import a
@@ -138,16 +138,16 @@
 w.View;%0A
-
 import a
@@ -575,16 +575,90 @@
  intent;
+%0A%09private int viewId;%0A%09private CharSequence label;%0A%09private Drawable icon;
 %0A%0A    /*
@@ -1229,24 +1229,348 @@
 bject;%0A    %7D
+%0A    %0A    @Implementation%0A    public TabHost.TabSpec setIndicator(CharSequence label) %7B%0A    %09this.label = label;%0A        return realObject;%0A    %7D%0A%0A    @Implementation%0A    public TabHost.TabSpec setIndicator(CharSequence label, Drawable icon) %7B%0A    %09this.label = label;%0A    %09this.icon = icon;%0A        return realObject;%0A    %7D
 %0A%0A    /**%0A  
@@ -1852,24 +1852,24 @@
 t intent) %7B%0A
-
         this
@@ -1919,10 +1919,163 @@
 ;%0A    %7D%0A
+    %0A%0A    @Implementation%0A    public android.widget.TabHost.TabSpec setContent(int viewId) %7B%0A    %09this.viewId = viewId;%0A        return realObject;%0A    %7D%0A
 %7D%0A

Add implementations to ShadowTabSpec for setContent(int) and setIndicator(CharSequence) modified: src/main/java/com/xtremelabs/robolectric/shadows/ShadowTabSpec.java