PhoneTabSwitcherLayout.java 文件源码

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

项目:NeoTerm 作者:
/**
 * Creates and returns an animation listener, which allows to restore the original state of a
 * tab, when an animation, which zooms in the tab, has been ended.
 *
 * @param tabItem
 *         The tab item, which corresponds to the tab, which has been zoomed in, as an instance
 *         of the class {@link TabItem}. The tab item may not be null
 * @return The listener, which has been created, as an instance of the type {@link
 * AnimatorListener}. The listener may not be null
 */
private AnimatorListener createZoomInAnimationListener(@NonNull final TabItem tabItem) {
    return new AnimatorListenerAdapter() {

        @Override
        public void onAnimationEnd(final Animator animation) {
            super.onAnimationEnd(animation);
            getModel().addListener(PhoneTabSwitcherLayout.this);
            viewRecycler.inflate(tabItem);
            viewRecycler.clearCache();
            recyclerAdapter.clearCachedPreviews();
            tabViewBottomMargin = -1;
        }

    };
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号