I am trying to set up tabs in my actionbar but on a 7inch tablet the tabs dont fit so they get pushed into a dropdown view in the actionbar
This has little to do with "7inch tablet". Android will choose, when it wants to, based on its own rules, whether to display action bar tabs as tabs or as a drop-down. This is based on a variety of factors, including orientation.
on a 10inch tablet its fine.
Have you tested it on every tablet ever manufacturered? If not, how can you be certain of this claim?
Not to mention that there will be new devices manufactured in the future with possibly different characteristics. And, of course, Android can change its algorithm for determining when to switch between tabs and drop-down lists.
If you do not want your tabs be switched into a drop-down list, then do not use action bar tabs. Use:
ViewPager
with PagerTabStrip
, or
ViewPager
with the tab indicator from the ViewPagerIndicator library, or
FragmentTabHost