I have added TabLayout (from support library v22.2.1) to my Fragment as:
TabLayout
After spending 2 days to figure out the issue, now finally it's working for me. Please see @Tyler V's answer check here From Tyler's answer 'It was key to set the minimum width before calling super.onMeasure().' is very important