动画
文章平均质量分 96
Mars-xq
好记性不如烂笔头。
展开
-
Android 动画: 补间动画、帧动画、属性动画
动画原创 2017-01-06 15:43:33 · 592 阅读 · 0 评论 -
view出水面的移动动画
要点:将要实现动画的TextView被EditText覆盖,做出出水面,进水面的效果,只要在水面之下看不见,出水面就看得见。布局:<?xml version="1.0" encoding="utf-8"?><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width=原创 2017-09-29 10:17:45 · 270 阅读 · 0 评论 -
ViewPropertyAnimator的使用
老版本属性动画ObjectAnimator objectAnimator = ObjectAnimator.ofFloat(btnShow, "translationX", 0, 300);ObjectAnimator objectAnimator1 = ObjectAnimator.ofFloat(btnShow, "rotation", 0, 360);AnimatorSet animato原创 2017-08-30 15:35:07 · 8392 阅读 · 2 评论 -
PropertyValuesHolder的使用
参考: PropertyValuesHolder的使用【HenCoder Android 开发进阶】自定义 View 1-7:属性动画(进阶篇)同一个动画中改变多个属性:多个动画同时执行方式一:ViewPropertyAnimatorview.animate() .scaleX(1) .scaleY(1) .alpha(1);方式二:Propert原创 2017-11-04 16:19:22 · 876 阅读 · 0 评论 -
android : 属性动画
//属性动画public final class ObjectAnimator extends ValueAnimator {...}public class ValueAnimator extends Animator {...}public final class AnimatorSet extends Animator {...}//补间动画public class AnimationSe原创 2017-02-09 12:01:28 · 2606 阅读 · 1 评论 -
ValueAnimator和TypeEvaluator 的使用
效果:小圆沿着正弦曲线不断运动PointSinViewpublic class PointSinView extends View { private static final int RADIUS = 20; private Point currentPoint; private Paint paint; private Point startP; priva原创 2017-11-04 17:24:54 · 786 阅读 · 0 评论