chengangfeng / tickview Goto Github PK
View Code? Open in Web Editor NEW一个精致带感的打钩小动画
License: MIT License
一个精致带感的打钩小动画
License: MIT License
RT,下面的代码有个小笔误,其中的TickView_uncheck_base_color
应该是TickView_check_tick_color
的,对吧
checkTickColor = typedArray.getColor(R.styleable.TickView_uncheck_base_color, getResources().getColor(R.color.tick_white));
代码中每一步的动画,都几乎用了自己写的计数器协助绘制动画,代码的可读性不是很好,而且如果一旦要实现插值器的效果,很难做到,所以很有必要将原来的计数器替换成属性动画。
通过依赖引入后,也能成功设置了。可是无法设置大小
int width = getMySize((radius + dp2px(mContext, 2.5f) * SCALE_TIMES) * 2, widthMeasureSpec);
int height = getMySize((radius + dp2px(mContext, 2.5f) * SCALE_TIMES) * 2, heightMeasureSpec);
height = width = Math.max(width, height);
setMeasuredDimension(width, height);
这段代码的意义是什么?我注释掉以后没有不一样所以想请教您一下。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.