In android, tab layout getting improper view in landscape mode : <p><a href="https://i.stack.imgur.com/BVls6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/BVls6.png" alt="This is what my app getting in landscape mode"></a></p>

<p><a href="https://i.stack.imgur.com/HmWxt.png" rel="noreferrer"><img src="https://i.stack.imgur.com/HmWxt.png" alt="and this is what I want in landscape mode"></a></p>

<p>I made an application with android.support.design.widget.TabLayout and when I am switching the app into landscape mode, the tab will not fit into the window. Please help, thanks in advance.</p>
