title: How to set the start default fragment of Bottom Navigation Bar to the center/middle fragment?
body: <p>I am implementing the following GitHub repo in my project.
  <a href="https://github.com/jaisonfdo/BottomNavigation" rel="nofollow noreferrer">https://github.com/jaisonfdo/BottomNavigation</a>  I didn't paste my code here because I have other features in my project which are not important to the question. This repo is implementing a bottom navigation bar along pageViewer so that we can change the fragments with swipe left/right.</p>
  <p>Now the issue is, I want the default/initial screen to be the middle tab and the 2nd fragment. I tried changing the &quot;android:checked&quot; of the second tab to be &quot;true&quot;, still at the start, I am getting the 1st tab as default. I also tried changing the order in which the fragments are added initially but still, I am getting the first one as default. The picture is attached below. I want the &quot;CHATS&quot; to be displayed as pink and show the &quot;ChatsFragment&quot; in place of &quot;ContactsFragments&quot;.</p>
  <p>I want it in middle due to the UI requirements. Any help would be highly appreciated.
  <a href="https://i.stack.imgur.com/cGE4D.png" rel="nofollow noreferrer">1</a></p>
  <p>[<img src="https://i.stack.imgur.com/cGE4D.png" alt="enter image description here" />]</p>