1

I want to customize ActionBarSherlock tabs and tab bar.It is like this. enter image description here

I want make it like thisenter image description here

Sangam_cs
  • 199
  • 2
  • 11
  • 2
    customizing it this way, even though it's possible, is not intuitive at all and doesn't look like an android app (looks more like IOS) . please consider using a different design. see here: http://developer.android.com/design/patterns/pure-android.html . – android developer Aug 28 '13 at 05:28
  • 1
    I think you should play with ABS theme and drawable. By this you can customize ABS as you want. – Vipul Purohit Aug 28 '13 at 05:29
  • @Vipul Could you please provide codes for it's implementation ? – Sangam_cs Aug 28 '13 at 05:41

2 Answers2

0

You could use a custom view to display the tabs. You could try a 3-arg LinearLayout constructor (added in API 11). By specifying a default style in an XML file, the library tends to leverage the system layout inflator. So, you can also do a similar work around

<LinearLayout style="?attr/actionBarTabStyle" />

And then add the below code

LineraLayout tabView = LayoutInflater.from(context).inflate(R.layout.my_tab, null);
//set your layout params and setCustomView
VikramV
  • 1,111
  • 2
  • 13
  • 31
0

Here is two links which will help you to customize ABS.

Customize ActionBar TabBar (ActionBarSherlock)

And

How to customize ActionBar in Android (ActionbarSherlock)?

basically you need to make changes in ABS themes and have to play with its drawable.

Community
  • 1
  • 1
Vipul Purohit
  • 9,807
  • 6
  • 53
  • 76