I have added TabLayout (from support library v22.2.1) to my Fragment as:
TabLayout
androidx version:
***** BELOW IS OLD ANSWER *****
Try this one, it's a workaround which sets tabMaxWidth="0dp", tabGravity="fill" and tabMode="fixed".
tabMaxWidth="0dp"
tabGravity="fill"
tabMode="fixed"
Screenshot on a 10 inch tablet: