So i have a problem, i’m building a 4 tabs app. For tab support i use ABS. It’s all working fine. However there is one problem i hate. For setting icons in tab items i use that:
tab1 = getSupportActionBar().newTab();
tab1.setTag("1");
tab1.setIcon(R.drawable.androidtopmenu01);
tab1.setTabListener(this);
getSupportActionBar().addTab(tab1);
So it adds new tab, no problem. But it also adds a lot of padding to each side of the image. So when i add 4 tabs they are wider than regular screen and i mean a lot so the 4 tab isn’t seen at all. I know user can slide there, or when i pick tab 3 it automaticly slide right. But i want to remove those paddings so on a startup a user will see all 4 tabs. Or at least 3 and most of the 4.
Thank u all!
Ok, i’m not certainly using ActionBarSherlock but it’s probably about styles. So try to set correct tab style in library’s value folder. I’m not so sure, but as i look out, it could be:
try to reduce these paddings.