title: How to avoid/overcome animations on bottom navigation bar on android
body: <p>The navigation bar has 4 buttons, all of color gray. Each one inflates a specific fragment. when clicked on it,it changes its color to red.</p>
  
  <p>The button which is clicked is also becoming larger(bigger).I want to change the color(gray to red) but not <code>size</code>.
  How to achieve this (not changing the size of button)?</p>
  
  <p>Thanks in advance.</p>
  
  <p>The following is the part of the code:</p>
  
  <p><strong>Menu xml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item
          android:id="@+id/navigation_home"
          android:icon="@drawable/ic_feed"
          android:title=""/&gt;
      &lt;item
          android:id="@+id/navigation_dashboard"
          android:icon="@drawable/ic_analytics"
          android:title="" /&gt;
      &lt;item
          android:id="@+id/navigation_profile"
          android:icon="@drawable/ic_profile"
          android:title="" /&gt;
      &lt;item
          android:id="@+id/navigation_settings"
          android:icon="@drawable/ic_settings"
          android:title="" /&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p><strong>kotlin code</strong>: </p>
  
  <pre><code>private lateinit var bottomnav : BottomNavigationView
  val navUtils = NavigationUtils()
  private val mOnNavigationItemSelectedListener = 
  BottomNavigationView.OnNavigationItemSelectedListener { item -&gt;
  
      when (item.itemId) {
          R.id.navigation_home -&gt; {
              val locationhistoryinstance = 
              LocationHistoryFragment.newInstance()
              loadFragment(locationhistoryinstance)
              setTitle("Calender Test")
              return@OnNavigationItemSelectedListener true
          }
  
          R.id.navigation_dashboard -&gt; {
              val analyticsinstance = AnalyticsPageFragment.newInstance()
              loadFragment(analyticsinstance)
              setTitle("Analytics")
              return@OnNavigationItemSelectedListener true
          }
  
          R.id.navigation_profile -&gt; {
              val profileinstance = ProfileFragment.newInstance()
              loadFragment(profileinstance)
              setTitle("Profile")
              return@OnNavigationItemSelectedListener true
          }
          R.id.navigation_settings -&gt; {
              val settingsinstance = SettingsFragment.newInstance()
              loadFragment(settingsinstance)
              setTitle("Settings")
              return@OnNavigationItemSelectedListener true
          }
      }
      false
  }
  
  override fun onCreate(savedInstanceState: Bundle?) {
      super.onCreate(savedInstanceState)
      setContentView(R.layout.activity_home)
      navigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
      bottomnav = findViewById(R.id.navigation)
  
      navUtils.disableShiftMode(bottomnav)
  
  }
  </code></pre>