BottomNavigationView doesn't allow disabling shift mode has this issue fixed in new version of support library?
Also there are some solutions which use reflection mechanism I don't think its right way is there any solution to this major problem.
All ready seen this solution don't want to use this
If possible then update to android sdk-28 then add app:labelVisibilityMode="labeled"
in your xml.
You just need to update to 28.0.0 support library! They already provided setLabelVisibilityMode() method to disable the shifting
navButton.setLabelVisibilityMode(LabelVisibilityMode.LABEL_VISIBILITY_LABELED);
for more info, check this out https://developer.android.com/reference/com/google/android/material/bottomnavigation/LabelVisibilityMode.html#LABEL_VISIBILITY_SELECTED
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