problems with create tab - android -
i need menu 3 tabs.
i have following android code, works:
tabhost = gettabhost(); tabspec newactivity = tabhost.newtabspec("a"); intent intent = new intent(this,a.class); intent.putextra("name", name); intent.putextra("age", string.valueof(age)); newactivity.setindicator("a", getresources().getdrawable(r.drawable.a)) .setcontent(intent); tabhost.addtab(createtab(b.class, home_tab_id, "b", r.drawable.h)); tabhost.addtab(newactivity); tabhost.addtab(createtab(c, more_tab_id, "c", r.drawable.c));
class b , class c:
import android.app.activity; public class b extends activity{ }
why middle tab has different color compared first , last tab?
i need 3 tabs same. need middle tab have same color - shape first , third one?