0

I am trying to implement scrollable tabs with custom height of the tabs. I have searched a lot and found that even though ActionBar is the latest thing, it somehow doesn't support changing the height of the tab navigation bar.

I know this has probably been asked before but could someone help with me with a work around for adjusting the height of the tabs via ActionBar.

minSDKVersion = 14 targetSDKVersion = 18

Thanks. Sunny

UPDATE: veiwpager used in the xml Layout

        <android.support.v4.view.ViewPager
        android:id="@+id/pager"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom" />
Sunny
  • 6,720
  • 19
  • 56
  • 92
  • Are you using viewpager? – keshav Dec 06 '13 at 13:08
  • yes, i am for the swiping of the fragments. is that creating an issue? Changing height of the tabs is the major thing. I can live with just scrolling tabs and no scrolling for the fragments – Sunny Dec 06 '13 at 13:10
  • Can you post your layout where you are using viewpager? – keshav Dec 06 '13 at 13:20
  • @keshav ..i have posted the view pager that i used. please let me know if any other info is required – Sunny Dec 06 '13 at 15:49
  • you have posted only viewpager ,I have asked for layout(whole) containing viewpager. – keshav Dec 06 '13 at 16:06
  • ok so this is how i went about it. I just had the veiw pager in the main xml. Then in the activity I added the action bar and added the tabs to the action bar and set navigation mode and set the listners. I had a veiwpage adaptor where I added the fragments based on the tab clicked – Sunny Dec 06 '13 at 16:46

0 Answers0