I am defining a TabLayout with a layout_height of wrap_content as follows:
TabLayout
layout_height
wrap_content