AHBottomNavigation.java 文件源码

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

项目:SystemBarTint 作者:
/**
 * Restore Bottom Navigation with or without animation
 *
 * @param withAnimation Boolean
 */
public void restoreBottomNavigation(boolean withAnimation) {
    if (bottomNavigationBehavior != null) {
        bottomNavigationBehavior.resetOffset(this, withAnimation);
    } else {
        // Show bottom navigation
        ViewCompat.animate(this)
                .translationY(0)
                .setInterpolator(new LinearOutSlowInInterpolator())
                .setDuration(withAnimation ? 300 : 0)
                .start();
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号