I have implemented Bottom Navigation View from Design Support Library 25 in my project. I have 5 icons in the view. whenever an icon is selected it's having some animation. But when 3 or fewer icons is not showing any animations. I want to remove that animation and need only some color change for the icon. How can I achieve this? Done enough googling, but couldn't find the solution. Please help. Thanks.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
I just add this code on dimens.xml, and its work like a charm!
got answer from this thread.
To remove animation or shift mode.
Implementation of
BottomNavigationView
has condition: when there is more than 3 items then use shift mode.Material Design is getting more handy to use.
App dependency to your Gradle file (Update to the latest version).
In MainActivity, just need to call the clearAnimation() function to the BottomNavigationView class
To remove animation or shift move create an bottomNavigationViewHelper class using bottomNavigationViewEX
This may not be the most elegant or practical solution but you could try to add the following line to your BottomNavigationView.
It will remove the label and also disable the animation.
Try this is the layout
app:labelVisibilityMode="labeled"
or in code level
mNavigationView.setLabelVisibilityMode(LabelVisibilityMode.LABEL_VISIBILITY_LABELED);
And update your design support library to 28.0.+