title: how to add swiping in bottom fragment code
body: <p>I have bottom navigation code its working fine but the swapping not working how to add swapping code ? </p>
  
  <p>I used fragment and bottom navigation in kotlin</p>
  
  <pre><code>private val mOnNavigationItemSelectedListener=BottomNavigationView.OnNavigationItemSelectedListener { item -&gt;
          when (item.itemId) {
              R.id.navigation_shop -&gt; {
                  // toolbar!!.title="live Track"
                  fragment=StoreFragment()
                  loadFragment(fragment)
                  return@OnNavigationItemSelectedListener true
              }
  
              R.id.navigation_gifts -&gt; {
                  //toolbar!!.title="Team Management"
                  fragment=GiftsFragment()
                  loadFragment(fragment)
                  return@OnNavigationItemSelectedListener true
              }
  
              R.id.navigation_cart -&gt; {
                  //toolbar!!.title="All task"
                  fragment=CartFragment()
                  loadFragment(fragment)
                  return@OnNavigationItemSelectedListener true
              }
  
              R.id.navigation_profile -&gt; {
                  // toolbar!!.title="Report"
                  fragment=ProfileFragment()
                  loadFragment(fragment)
                  return@OnNavigationItemSelectedListener true
              }
          }
  
          true
      }
  </code></pre>