title: How to use tablayout with bottom navigation and viewpager?
body: <p>I created an activity with a <code>bottom navigation bar</code>. 
  I want <code>tablayout</code> when I want to switch to another fragment.
  And <code>tablayout</code> can control <code>viewpager</code>. Can I put <code>viewpager</code> to the specified fragment?</p>
  
  <p>I wanna like this:</p>
  
  <p><img src="https://i.stack.imgur.com/qD6ax.jpg" alt="enter image description here"></p>
  
  <p>This is the current result. I want to put <code>viewpager</code> in the red box.</p>
  
  <p><img src="https://i.stack.imgur.com/spmF1.png" alt="enter image description here"></p>