Reputation: 13364
I am using ActionBar (ActionBarSherlock (version 4.2) for pre HoneyComb devices) in my app, I have four tabs each of them having just an image on it.
Now my problem is I want 4th tab to be the smaller than the other ones, Other three must fill the space available and leave few pixels before the 4th tab starts.
Suppose for example, first 3 tabs cover the 75% of screen width (25% each), then there is a space of 5% width (screen space) and the last tab takes just 20% of the screen width.
How can I do that?
I have read a few threads here on Stack Overflow related to that but couldn't find any answer for my problem. A simple pointer towards the solution will be of great help.
Upvotes: 2
Views: 388
Reputation: 23596
Why don't you try the following. Make 5 tab instead of four. Give them all the size as per your need. Where first three tabs has the same size and fourth tab is nothing but just space. Fifth tab will be your original fourth tab.
Upvotes: 1