/**
* Hide Bottom Navigation with or without animation
*
* @param withAnimation Boolean
*/
public void hideBottomNavigation(boolean withAnimation) {
if (bottomNavigationBehavior != null) {
bottomNavigationBehavior.hideView(this, bottomNavigationHeight, withAnimation);
} else if (getParent() instanceof CoordinatorLayout) {
needHideBottomNavigation = true;
hideBottomNavigationWithAnimation = withAnimation;
} else {
// Hide bottom navigation
ViewCompat.animate(this)
.translationY(bottomNavigationHeight)
.setInterpolator(new LinearOutSlowInInterpolator())
.setDuration(withAnimation ? 300 : 0)
.start();
}
}
BottomNavigation.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:MVPFrames
作者:
评论列表
文章目录