Is it possible to change the background colour of the particular portion of the bar behind the selected item of the bottom navigation bar or any third party libraries that support this?
Also is it possible to add a highlighted bar along the bottom of the selected item like the image below?
See below screenshot:
Tap the Gear icon next to Active App on the home screen and you can disable coloring for certain apps, or override the default color if you'd prefer another. If you'd rather keep it at one color, choose Static Color on the home screen. Tap the Gear to select your color. This is all you need to get a colored status bar.
Button order You can also adjust the order of the buttons on the Navigation bar. From Settings, tap Display, and then tap Navigation bar. Make sure Buttons is selected, and then you can choose your desired button setup at the bottom of the screen.
You can use the app:itemBackground
attribute of BottomNavigationView
to do this. The "selected" view is actually checked, so keep that in mind when you're creating your state list.
Something like this should work:
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/blue" android:state_checked="true"/>
<item android:drawable="@color/gray"/>
</selector>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With