AHBottomNavigation.java 文件源码

java
阅读 34 收藏 0 点赞 0 评论 0

项目:SystemBarTint 作者:
/**
 * 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) {
        //TODO
        needHideBottomNavigation = true;
        hideBottomNavigationWithAnimation = withAnimation;
    } else {
        // Hide bottom navigation
        ViewCompat.animate(this)
                .translationY(bottomNavigationHeight)
                .setInterpolator(new LinearOutSlowInInterpolator())
                .setDuration(withAnimation ? 300 : 0)
                .start();
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号