public DachshundIndicator(DachshundTabLayout dachshundTabLayout){
this.dachshundTabLayout = dachshundTabLayout;
valueAnimatorLeft = new ValueAnimator();
valueAnimatorLeft.setDuration(DEFAULT_DURATION);
valueAnimatorLeft.addUpdateListener(this);
valueAnimatorRight = new ValueAnimator();
valueAnimatorRight.setDuration(DEFAULT_DURATION);
valueAnimatorRight.addUpdateListener(this);
accelerateInterpolator = new AccelerateInterpolator();
decelerateInterpolator = new DecelerateInterpolator();
rectF = new RectF();
rect = new Rect();
paint = new Paint();
paint.setAntiAlias(true);
paint.setStyle(Paint.Style.FILL);
leftX = (int) dachshundTabLayout.getChildXCenter(dachshundTabLayout.getCurrentPosition());
rightX = leftX;
}
DachshundIndicator.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:Dachshund-Tab-Layout
作者:
评论列表
文章目录