{"id":279387,"date":"2016-04-29T20:20:03","date_gmt":"2016-04-29T16:20:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=279387"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=279387","title":{"rendered":"Animator \u2014 \u0447\u0442\u043e \u044d\u0442\u043e? \u0417\u0430\u0447\u0435\u043c \u043e\u043d \u043d\u0443\u0436\u0435\u043d? \u041f\u043e\u0447\u0435\u043c\u0443 \u0435\u0433\u043e \u0441\u0442\u043e\u0438\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043c\u0435\u0441\u0442\u043e Animation?"},"content":{"rendered":"<p>       \u041f\u0440\u0438\u0432\u0435\u0442! \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0414\u0430\u043d\u0438\u043b \u041f\u0435\u0440\u0435\u0432\u0430\u043b\u043e\u0432, \u044f \u0440\u0430\u0431\u043e\u0442\u0430\u044e Android-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u043c \u0432 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u00ab\u041b\u0430\u0439\u0432 \u0422\u0430\u0439\u043f\u0438\u043d\u0433\u00bb, \u0438 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u043d\u0435 \u0432\u044b\u043f\u0430\u043b\u0430 \u0447\u0435\u0441\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043d\u0430\u0448 \u0431\u043b\u043e\u0433 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435. \u0414\u0435\u0431\u044e\u0442\u043d\u044b\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043f\u043e\u0441\u0432\u044f\u0449\u0451\u043d \u0442\u0438\u043f\u0443 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 Animator. \u0421\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u0430 \u0438 \u0442\u0435\u043c, \u043a\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439, \u0438 \u0442\u0435\u043c, \u043a\u043e\u043c\u0443 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u0436\u0435 \u0438\u043c\u0435\u044e\u0449\u0438\u0445\u0441\u044f \u0437\u043d\u0430\u043d\u0438\u0439 \u043f\u043e \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0443. \u0422\u0435\u0445 \u0436\u0435, \u043a\u0442\u043e \u0434\u0430\u0432\u043d\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 \u0442\u0435\u043c\u043e\u0439, \u043c\u044b \u043d\u0430\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e \u043f\u0440\u043e\u0441\u0438\u043c \u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043e\u043f\u044b\u0442\u043e\u043c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445. <\/p>\n<h4>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u2014 Animator?<\/h4>\n<p>  \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u0438. \u0421 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b Android \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a View Animation. \u041f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0430\u043b\u0441\u044f \u043e\u043d, \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0437 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f, \u0434\u043b\u044f \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439. \u041d\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0432 \u043a\u043e\u043d\u0446\u0435 \u043d\u0443\u043b\u0435\u0432\u044b\u0445 \u0431\u044b\u043b\u0430 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0438\u0437\u043a\u043e\u0439, \u0447\u0442\u043e \u043e \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0445 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f\u0445 \u043d\u0438\u043a\u0442\u043e \u043e\u0441\u043e\u0431\u043e \u043d\u0435 \u0434\u0443\u043c\u0430\u043b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u043d\u0435 \u0431\u044b\u043b \u0443\u0434\u043e\u0431\u043d\u044b\u043c \u0438 \u0433\u0438\u0431\u043a\u0438\u043c. \u041e\u043d \u0438\u043c\u0435\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0442\u044b\u0440\u0435 \u0442\u0438\u043f\u0430 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 (TranslateAnimation, AlphaAnimation, ScaleAnimation, RotateAnimation), \u043a\u043b\u0430\u0441\u0441, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0438\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c (AnimationSet), \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043a\u043b\u0430\u0441\u0441\u0430\u043c\u0438, \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u043e\u0442 View. <\/p>\n<p>  \u0412 Android 3.0 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043a\u0443\u0434\u0430 \u0431\u043e\u043b\u0435\u0435 \u0433\u0438\u0431\u043a\u0438\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a Property Animation. \u041e\u043d \u0443\u043c\u0435\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u043b\u044e\u0431\u043e\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043b\u044e\u0431\u044b\u043c\u0438 \u043a\u043b\u0430\u0441\u0441\u0430\u043c\u0438. \u0415\u0433\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f Animator.<\/p>\n<p>  Animator \u2014 \u044d\u0442\u043e \u0442\u0438\u043f \u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0413\u0440\u0443\u0431\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u044d\u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0442\u043e\u043a\u043e\u043c \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043e\u0442 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c\u0443. \u0422\u0430\u043a\u0438\u043c \u043f\u043b\u0430\u0432\u043d\u043e \u043c\u0435\u043d\u044f\u044e\u0449\u0438\u043c\u0441\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e\u043c \u0432 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c.<\/p>\n<p>  \u0418\u0434\u0435\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 Animator \u043e\u0442 View Animation \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e View Animation \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u00ab\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u00bb \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u044f \u0441\u0430\u043c \u043e\u0431\u044a\u0435\u043a\u0442 (\u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 setFillAfter(true), \u043d\u043e \u0441 \u044d\u0442\u0438\u043c \u0444\u043b\u0430\u0433\u043e\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0446\u0435 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438). Animator \u0436\u0435 \u043f\u0440\u0438\u0437\u0432\u0430\u043d \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0441\u0430\u043c\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430.<\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u041a\u043b\u0430\u0441\u0441\u044b, \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043e\u0442 Animator<\/h4>\n<p>  <i>ValueAnimator (\u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442\u0441\u044f \u043e\u0442 Animator)<\/i><\/p>\n<p>  \u0412 \u0441\u0430\u043c\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 \u043c\u044b \u0437\u0430\u0434\u0430\u0451\u043c \u044d\u0442\u043e\u043c\u0443 \u043a\u043b\u0430\u0441\u0441\u0443 \u0442\u0438\u043f \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c. \u0412 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430\u043c \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u043e, \u043a\u043e\u043d\u0435\u0446, \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0435 \u0438 \u043e\u0442\u043c\u0435\u043d\u0443 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u0438 \u0435\u0449\u0451 \u043d\u0430 \u0434\u0432\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043f\u0430\u0443\u0437\u044b \u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u0421\u043e\u0431\u044b\u0442\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043f\u043e\u0436\u0430\u043b\u0443\u0439, \u0441\u0430\u043c\u043e\u0435 \u0432\u0430\u0436\u043d\u043e\u0435: \u0432 \u043d\u0435\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0451\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u044b \u0438 \u0431\u0443\u0434\u0435\u043c \u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432.<\/p>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 alpha \u0441 \u0435\u0433\u043e \u043f\u043e\u043c\u043e\u0449\u044c\u044e:<\/p>\n<pre><code class=\"java\">ValueAnimator animator = ValueAnimator.ofFloat(0, 1); animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {    @Override    public void onAnimationUpdate(ValueAnimator animation) {        view.setAlpha((Float) animation.getAnimatedValue());    } }); animator.start(); <\/code><\/pre>\n<p>  <i>ObjectAnimator, \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442\u0441\u044f \u043e\u0442 ValueAnimator<\/i><\/p>\n<p>  \u042d\u0442\u043e \u043a\u043b\u0430\u0441\u0441, \u043f\u0440\u0438\u0437\u0432\u0430\u043d\u043d\u044b\u0439 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 ValueAnimator. \u0421 \u043d\u0438\u043c \u0432\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u043a\u0430\u043a\u043e\u0435-\u043b\u0438\u0431\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u2014 \u0432\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0430\u0451\u0442\u0435 Animator&#8217;\u0443 \u043e\u0431\u044a\u0435\u043a\u0442 \u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0435 \u043f\u043e\u043b\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 scaleX. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Java Refliction \u0438\u0449\u0435\u0442\u0441\u044f setter \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044f (\u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2014 setScaleX. \u0414\u0430\u043b\u0435\u0435 Animator \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043c\u0435\u043d\u044f\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044f.<br \/>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e ObjectAnimator \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 alpha \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"java\">ObjectAnimator.ofFloat(view, View.ALPHA, 0, 1).start(); <\/code><\/pre>\n<p>  \u0423 \u043a\u043b\u0430\u0441\u0441\u0430 View \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Animator:  <\/p>\n<ul>\n<li>\u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c (View.ALPHA)<\/li>\n<li>\u043c\u0430\u0441\u0448\u0442\u0430\u0431 (View.SCALE_X, View.SCALE_Y)<\/li>\n<li>\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435 (View.ROTATION, View.ROTATION_X, View.ROTATION_Y)<\/li>\n<li>\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 (View.X, View.Y, View.Z)<\/li>\n<li>\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 (View.TRANSLATION_X, View.TRANSLATION_Y, View.TRANSLATION_Z)<\/li>\n<\/ul>\n<p>  <i>AnimatorSet (\u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442\u0441\u044f \u043e\u0442 Animator)<\/i><\/p>\n<p>  \u042d\u0442\u043e \u043a\u043b\u0430\u0441\u0441, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438: \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438\u043b\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0438 \u0442.\u0434. <\/p>\n<p>  <i>ViewPropertyAnimator<\/i><\/p>\n<p>  \u042d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441. \u041e\u043d \u043d\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442\u0441\u044f \u043e\u0442 Animator, \u043d\u043e \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u0442\u043e\u0439 \u0436\u0435 \u043b\u043e\u0433\u0438\u043a\u043e\u0439, \u0447\u0442\u043e \u0438 ObjectAnimator \u0434\u043b\u044f View, \u0438 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u043b\u0451\u0433\u043a\u043e\u0433\u043e \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u043a\u043e\u0439-\u043b\u0438\u0431\u043e View \u0431\u0435\u0437 \u043b\u0438\u0448\u043d\u0438\u0445 \u0437\u0430\u043c\u043e\u0440\u043e\u0447\u0435\u043a.<br \/>  \u0412\u043e\u0442 \u0442\u0430\u043a \u0441 \u0435\u0433\u043e \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c alpha:<\/p>\n<pre><code class=\"java\">view.animate().alphaBy(0).alpha(1).start(); <\/code><\/pre>\n<h4>\u041a\u0430\u043a \u043c\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Animator<\/h4>\n<p>  \u041e\u043a\u043e\u043b\u043e \u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434 \u043f\u0435\u0440\u0435\u0434\u043e \u043c\u043d\u043e\u0439 \u0432\u0441\u0442\u0430\u043b\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e \u043f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435 \u043d\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442. \u0412\u043e\u0442 \u0442\u0430\u043a\u0443\u044e:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/355\/820\/622\/355820622fb24674b809518a2004ca4e.gif\"\/><\/p>\n<p>  \u041d\u0435 \u0442\u043e \u0447\u0442\u043e\u0431\u044b \u044f \u043d\u0435 \u0434\u0435\u043b\u0430\u043b \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439 \u043f\u0440\u0435\u0436\u0434\u0435, \u043d\u043e \u043d\u0430 \u0430\u0443\u0442\u0441\u043e\u0440\u0441\u0435 \u043e\u043d\u0438 \u0440\u0435\u0434\u043a\u043e \u043d\u0443\u0436\u043d\u044b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0437\u0430\u0433\u0443\u0433\u043b\u0438\u043b Animation Android. \u041f\u0435\u0440\u0432\u044b\u0435 \u043f\u044f\u0442\u044c \u0441\u0441\u044b\u043b\u043e\u043a \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0438, \u043a\u0430\u043a \u0434\u0435\u043b\u0430\u044e\u0442\u0441\u044f \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438, \u0438 \u044f \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043b. \u0412\u043e\u0442 \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/355\/820\/622\/355820622fb24674b809518a2004ca4e.gif\"\/>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 Animation<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\"> public static void likeAnimation(@DrawableRes int icon,                                      final ImageView imageView) {         imageView.setImageResource(icon);         imageView.setVisibility(View.VISIBLE);         AlphaAnimation showAlphaAnimation = new AlphaAnimation(0.0f, 1.0f);         showAlphaAnimation.setDuration(SHOW_DURATION);         ScaleAnimation showScaleAnimation = new ScaleAnimation(0.2f, 1.4f, 0.2f, 1.4f,                 android.view.animation.Animation.RELATIVE_TO_SELF, 0.5f,                 android.view.animation.Animation.RELATIVE_TO_SELF, 0.5f);         showScaleAnimation.setDuration(SHOW_DURATION);         AnimationSet showAnimationSet = new AnimationSet(false);         showAnimationSet.addAnimation(showAlphaAnimation);         showAnimationSet.addAnimation(showScaleAnimation);         showAnimationSet.setAnimationListener(new OnEndAnimationListener() {             @Override             public void onAnimationEnd(android.view.animation.Animation animation) {                 ScaleAnimation toNormalScaleAnimation = new ScaleAnimation(1.4f, 1.0f, 1.4f, 1.0f,                         android.view.animation.Animation.RELATIVE_TO_SELF, 0.5f,                         android.view.animation.Animation.RELATIVE_TO_SELF, 0.5f);                 toNormalScaleAnimation.setDuration(TO_NORMAL_DURATION);                 toNormalScaleAnimation.setAnimationListener(new OnEndAnimationListener() {                     @Override                     public void onAnimationEnd(android.view.animation.Animation animation) {                         AlphaAnimation hideAlphaAnimation = new AlphaAnimation(1.0f, 0.0f);                         hideAlphaAnimation.setDuration(HIDE_DURATION);                         ScaleAnimation hideScaleAnimation = new ScaleAnimation(1.0f, 0.2f, 1.0f, 0.2f,                                 android.view.animation.Animation.RELATIVE_TO_SELF, 0.5f,                                 android.view.animation.Animation.RELATIVE_TO_SELF, 0.5f);                         hideScaleAnimation.setDuration(HIDE_DURATION);                         AnimationSet hideAnimationSet = new AnimationSet(false);                         hideAnimationSet.setStartOffset(HIDE_DELAY);                         hideAnimationSet.addAnimation(hideAlphaAnimation);                         hideAnimationSet.addAnimation(hideScaleAnimation);                         hideAnimationSet.setAnimationListener(new OnEndAnimationListener() {                             @Override                             public void onAnimationEnd(android.view.animation.Animation animation) {                                 imageView.setVisibility(View.GONE);                             }                         });                         imageView.startAnimation(hideAnimationSet);                     }                 });                 imageView.startAnimation(toNormalScaleAnimation);             }         });         imageView.startAnimation(showAnimationSet);     } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <a href=\"https:\/\/github.com\/princeparadoxes\/AnimationVsAnimator\/blob\/master\/app\/src\/main\/java\/com\/princeparadoxes\/animationvsanimator\/like\/AnimationExample.java\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043a\u043e\u0434<\/a><\/p>\n<p>  \u041a\u043e\u0434 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043c\u0430\u043b\u043e\u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c, \u0447\u0442\u043e \u043f\u043e\u0434\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u043e \u043c\u0435\u043d\u044f \u043a \u043f\u043e\u0438\u0441\u043a\u0430\u043c \u0438\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0431\u044b\u043b\u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u043d\u0430 <a href=\"http:\/\/stackoverflow.com\/a\/7334539\/5451527\">StackOveflow<\/a>. \u0418\u0434\u0435\u044f \u0442\u0430\u043a\u0430\u044f: \u043f\u043e\u043c\u0435\u0449\u0430\u0442\u044c \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439 \u043a\u0430\u0436\u0434\u0443\u044e \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e \u0432 AnimationSet \u0441\u043e \u0441\u0434\u0432\u0438\u0433\u043e\u043c, \u0440\u0430\u0432\u043d\u044b\u043c \u0441\u0443\u043c\u043c\u0435 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0435\u0439 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439. \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c \u0431\u044b\u043b\u043e:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/935\/d70\/fd1\/935d70fd173c465a9b1876a159bbe983.gif\"\/>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">AnimationSet<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\"> public static void likeAnimation(@DrawableRes int icon,                                      final ImageView imageView) {         imageView.setImageResource(icon);         imageView.setVisibility(View.VISIBLE);         AnimationSet animationSet = new AnimationSet(false);         animationSet.addAnimation(showAlphaAnimation());         animationSet.addAnimation(showScaleAnimation());         animationSet.addAnimation(toNormalScaleAnimation());         animationSet.addAnimation(hideAlphaAnimation());         animationSet.addAnimation(hideScaleAnimation());         animationSet.setAnimationListener(new OnEndAnimationListener() {             @Override             public void onAnimationEnd(Animation animation) {                 imageView.setVisibility(View.GONE);             }         });         imageView.startAnimation(animationSet);     }      private static Animation showAlphaAnimation() {         AlphaAnimation showAlphaAnimation = new AlphaAnimation(0.0f, 1.0f);         showAlphaAnimation.setDuration(SHOW_DURATION);         return showAlphaAnimation;     }      private static Animation showScaleAnimation() {         ScaleAnimation showScaleAnimation = new ScaleAnimation(                 0.2f, 1.4f, 0.2f, 1.4f,                 Animation.RELATIVE_TO_SELF, 0.5f,                 Animation.RELATIVE_TO_SELF, 0.5f);         showScaleAnimation.setDuration(SHOW_DURATION);         return showScaleAnimation;     }      private static Animation toNormalScaleAnimation() {         ScaleAnimation toNormalScaleAnimation = new ScaleAnimation(                 1.4f, 1.0f, 1.4f, 1.0f,                 Animation.RELATIVE_TO_SELF, 0.5f,                 Animation.RELATIVE_TO_SELF, 0.5f);         toNormalScaleAnimation.setDuration(TO_NORMAL_DURATION);         toNormalScaleAnimation.setStartOffset(SHOW_DURATION);         return toNormalScaleAnimation;     }      private static Animation hideAlphaAnimation() {         AlphaAnimation hideAlphaAnimation = new AlphaAnimation(1.0f, 0.0f);         hideAlphaAnimation.setDuration(HIDE_DURATION);         hideAlphaAnimation.setStartOffset(SHOW_DURATION + TO_NORMAL_DURATION + HIDE_DELAY);         return hideAlphaAnimation;     }      private static Animation hideScaleAnimation() {         ScaleAnimation hideScaleAnimation = new ScaleAnimation(                 1.0f, 0.2f, 1.0f, 0.2f,                 Animation.RELATIVE_TO_SELF, 0.5f,                 Animation.RELATIVE_TO_SELF, 0.5f);         hideScaleAnimation.setDuration(HIDE_DURATION);         hideScaleAnimation.setStartOffset(SHOW_DURATION + TO_NORMAL_DURATION + HIDE_DELAY);         return hideScaleAnimation;     } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <a href=\"https:\/\/github.com\/princeparadoxes\/AnimationVsAnimator\/blob\/master\/app\/src\/main\/java\/com\/princeparadoxes\/animationvsanimator\/like\/AnimationSetOffsetExample.java\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043a\u043e\u0434<\/a><\/p>\n<p>  \u041a\u043e\u0434 \u0441\u0442\u0430\u043b \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435 \u0438 \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u0435\u0435, \u043d\u043e \u0435\u0441\u0442\u044c \u043e\u0434\u043d\u043e \u00ab\u043d\u043e\u00bb: \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u0441\u0434\u0432\u0438\u0433\u043e\u043c \u0443 \u043a\u0430\u0436\u0434\u043e\u0439 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e \u0434\u0430\u0436\u0435 \u0432 \u0442\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u0415\u0441\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0449\u0451 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0448\u0430\u0433\u043e\u0432, \u0442\u043e \u044d\u0442\u043e \u0441\u0442\u0430\u043d\u0435\u0442 \u043f\u043e\u0447\u0442\u0438 \u043d\u0435\u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439. \u0422\u0430\u043a\u0436\u0435 \u0432\u0430\u0436\u043d\u044b\u043c \u043c\u0438\u043d\u0443\u0441\u043e\u043c \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u0441\u0442\u0430\u043b\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438: \u0440\u0430\u0437\u043c\u0435\u0440 \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u043f\u043e \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c, \u0431\u044b\u043b \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u043f\u0440\u0438 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439. \u041f\u043e\u043f\u044b\u0442\u043a\u0438 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u043d\u0438 \u043a \u0447\u0435\u043c\u0443 \u043d\u0435 \u043f\u0440\u0438\u0432\u0435\u043b\u0438, \u0430 \u0432\u043d\u0438\u043a\u0430\u0442\u044c \u0433\u043b\u0443\u0431\u0436\u0435 \u044f \u0443\u0436\u0435 \u043d\u0435 \u0441\u0442\u0430\u043b \u2014 \u043f\u043e\u0434\u0445\u043e\u0434 \u043c\u043d\u0435 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u043b\u0441\u044f. \u041d\u043e \u044f \u0440\u0435\u0448\u0438\u043b \u0440\u0430\u0437\u0432\u0438\u0442\u044c \u044d\u0442\u0443 \u0438\u0434\u0435\u044e \u0438 \u0440\u0430\u0437\u0431\u0438\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0448\u0430\u0433 \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 AnimatorSet. \u0412\u043e\u0442 \u0447\u0442\u043e \u0432\u044b\u0448\u043b\u043e:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/3a3\/bc5\/a29\/3a3bc5a293044c5684722d05bf552be1.gif\"\/>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">AnimatorSet \u0432 AnimatorSet<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">public static void likeAnimation(@DrawableRes int icon,                                      final ImageView imageView) {         imageView.setImageResource(icon);         imageView.setVisibility(View.VISIBLE);         AnimationSet animationSet = new AnimationSet(false);         animationSet.addAnimation(showAnimationSet());         animationSet.addAnimation(toNormalAnimationSet());         animationSet.addAnimation(hideAnimationSet());         animationSet.setAnimationListener(new OnEndAnimationListener() {             @Override             public void onAnimationEnd(Animation animation) {                 imageView.setVisibility(View.GONE);             }         });         imageView.startAnimation(animationSet);     }      private static AnimationSet showAnimationSet() {         AlphaAnimation showAlphaAnimation = new AlphaAnimation(0.0f, 1.0f);         ScaleAnimation showScaleAnimation = new ScaleAnimation(                 0.2f, 1.4f, 0.2f, 1.4f,                 Animation.RELATIVE_TO_SELF, 0.5f,                 Animation.RELATIVE_TO_SELF, 0.5f);         AnimationSet set = new AnimationSet(false);         set.addAnimation(showAlphaAnimation);         set.addAnimation(showScaleAnimation);         set.setDuration(SHOW_DURATION);         return set;     }      private static AnimationSet toNormalAnimationSet() {         ScaleAnimation toNormalScaleAnimation = new ScaleAnimation(                 1.4f, 1.0f, 1.4f, 1.0f,                 Animation.RELATIVE_TO_SELF, 0.5f,                 Animation.RELATIVE_TO_SELF, 0.5f);         AnimationSet set = new AnimationSet(false);         set.addAnimation(toNormalScaleAnimation);         set.setDuration(TO_NORMAL_DURATION);         set.setStartOffset(SHOW_DURATION);         return set;     }      private static AnimationSet hideAnimationSet() {         AlphaAnimation hideAlphaAnimation = new AlphaAnimation(1.0f, 0.0f);         ScaleAnimation hideScaleAnimation = new ScaleAnimation(                 1.0f, 0.2f, 1.0f, 0.2f,                 Animation.RELATIVE_TO_SELF, 0.5f,                 Animation.RELATIVE_TO_SELF, 0.5f);         AnimationSet set = new AnimationSet(false);         set.setDuration(HIDE_DURATION);         set.addAnimation(hideAlphaAnimation);         set.addAnimation(hideScaleAnimation);         set.setStartOffset(SHOW_DURATION + TO_NORMAL_DURATION + HIDE_DELAY);         return set;     } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <a href=\"https:\/\/github.com\/princeparadoxes\/AnimationVsAnimator\/blob\/master\/app\/src\/main\/java\/com\/princeparadoxes\/animationvsanimator\/like\/AnimationSetInSetExample.java\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043a\u043e\u0434<\/a><\/p>\n<p>  \u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438, \u043f\u043b\u043e\u0445\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434, \u0432\u0441\u0451 \u043f\u043b\u043e\u0445\u043e. \u0412\u043d\u043e\u0432\u044c \u044f \u043e\u0431\u0440\u0430\u0442\u0438\u043b\u0441\u044f \u043a Google, \u0438 \u043d\u0430\u0442\u043a\u043d\u0443\u043b\u0441\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e Animation \u0443\u0436\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f Legacy code, \u0442\u043e \u0435\u0441\u0442\u044c \u0443\u0441\u0442\u0430\u0440\u0435\u043b \u0438 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0445\u043e\u0442\u044f \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f. <br \/>  \u042f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u0438\u043d\u0430\u0447\u0435. \u0418 \u0432\u043e\u0442 \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 <a href=\"http:\/\/developer.android.com\/intl\/ru\/guide\/topics\/graphics\/prop-animation.html\">Android Developers<\/a> \u044f \u043d\u0430\u0442\u043a\u043d\u0443\u043b\u0441\u044f \u043d\u0430 Animator. \u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e \u0441 \u0435\u0433\u043e \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u0430 \u0442\u0430\u043a:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/d67\/ae7\/4f2\/d67ae74f22d34d0f8da4037229c95cf5.gif\"\/>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Animator<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">public static void likeAnimation(@DrawableRes int icon,                                      final ImageView view) {         if (view != null && !isAnimate) {             AnimatorSet set = new AnimatorSet();             set.playSequentially(                     showAnimatorSet(view),                     toNormalAnimatorSet(view),                     hideAnimatorSet(view));             set.addListener(getLikeEndListener(view, icon));             set.start();         }         view.animate().alphaBy(0).alpha(1).start();     }      private static AnimatorListenerAdapter getLikeEndListener(final ImageView view, final int icon) {         return new AnimatorListenerAdapter() {             @Override             public void onAnimationStart(Animator animation) {                 super.onAnimationStart(animation);                 isAnimate = true;                 view.setVisibility(View.VISIBLE);                 view.setImageResource(icon);                 view.setLayerType(View.LAYER_TYPE_HARDWARE, null);             }              @Override             public void onAnimationEnd(Animator animation) {                 super.onAnimationEnd(animation);                 isAnimate = false;                 view.setVisibility(View.GONE);                 view.setImageDrawable(null);                 view.setLayerType(View.LAYER_TYPE_NONE, null);             }         };     }      private static AnimatorSet showAnimatorSet(View view) {         AnimatorSet set = new AnimatorSet();         set.setDuration(SHOW_DURATION).playTogether(                 ObjectAnimator.ofFloat(view, View.ALPHA, 0f, 1f),                 ObjectAnimator.ofFloat(view, View.SCALE_X, 0.2f, 1.4f),                 ObjectAnimator.ofFloat(view, View.SCALE_Y, 0.2f, 1.4f)         );         return set;     }      private static AnimatorSet toNormalAnimatorSet(View view) {         AnimatorSet set = new AnimatorSet();         set.setDuration(TO_NORMAL_DURATION).playTogether(                 ObjectAnimator.ofFloat(view, View.SCALE_X, 1.4f, 1f),                 ObjectAnimator.ofFloat(view, View.SCALE_Y, 1.4f, 1f)         );         return set;     }      private static AnimatorSet hideAnimatorSet(View view) {         AnimatorSet set = new AnimatorSet();         set.setDuration(HIDE_DURATION).playTogether(                 ObjectAnimator.ofFloat(view, View.ALPHA, 1f, 0f),                 ObjectAnimator.ofFloat(view, View.SCALE_X, 1f, 0.2f),                 ObjectAnimator.ofFloat(view, View.SCALE_Y, 1f, 0.2f)         );         set.setStartDelay(HIDE_DELAY);         return set;     } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <a href=\"https:\/\/github.com\/princeparadoxes\/AnimationVsAnimator\/blob\/master\/app\/src\/main\/java\/com\/princeparadoxes\/animationvsanimator\/like\/AnimatorExample.java\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043a\u043e\u0434<\/a><\/p>\n<p>  \u0410\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u0431\u0435\u0437\u0443\u043f\u0440\u0435\u0447\u043d\u043e, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u043f\u043e\u0438\u0441\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043e\u043a\u043e\u043d\u0447\u0435\u043d\u043d\u044b\u043c\u0438. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u0447\u0442\u043e \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 Animator \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u044c, \u043d\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u043b\u0438 \u0443\u0436\u0435 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e Animator \u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 view, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0442\u0430\u0440\u044b\u0439 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u0441\u044f, \u043a\u0430\u043a \u043d\u0438 \u0432 \u0447\u0435\u043c \u043d\u0435 \u0431\u044b\u0432\u0430\u043b\u043e.<\/p>\n<h4>\u0413\u043b\u0443\u0431\u0436\u0435 \u0432 Animator<\/h4>\n<p>  \u042f \u043d\u0430\u0447\u0430\u043b \u043f\u043e\u0438\u0441\u043a\u0438 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0435\u0449\u0451 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Animator. \u041f\u043e\u043b\u0451\u0442 \u043c\u044b\u0441\u043b\u0438 \u043f\u0440\u0438\u0432\u0451\u043b \u043c\u0435\u043d\u044f \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/a75\/a9b\/92a\/a75a9b92a0e54275b1c4a92ba499f618.gif\"\/><\/p>\n<p>  \u041f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0442\u044b\u0440\u0435 Animator&#8217;a:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">      AnimatorSet showHideSet = new AnimatorSet();       showHideSet.playTogether(                 ScrollAnimatorUtils.translationYAnimator(translationY, footerButtons),                 ScrollAnimatorUtils.translationYAnimator(translationY, footerText),                 ScrollAnimatorUtils.scrollAnimator(startScroll, endScroll, scrollView),                 ScrollAnimatorUtils.alphaAnimator(1, 0, recyclerView)         );         showHideSet.start(); <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  1) \u0434\u0432\u0438\u0433\u0430\u0435\u0442 \u0432\u043d\u0438\u0437 footer \u0441\u043f\u0438\u0441\u043a\u0430;<br \/>  2) \u0434\u0432\u0438\u0433\u0430\u0435\u0442 \u0432\u043d\u0438\u0437 \u043a\u043d\u043e\u043f\u043a\u0438;  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">translationYAnimator<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\"> public static Animator translationYAnimator(final float start, int end, final View view, int duration) {         ObjectAnimator animator = ObjectAnimator.ofFloat(view, View.TRANSLATION_Y, end);         animator.setDuration(duration);         animator.addListener(new AnimatorListenerAdapter() {             @Override             public void onAnimationEnd(Animator animation) {                 super.onAnimationEnd(animation);                 view.setTranslationY(start);             }         });         return animator;     } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  3) \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u0442 ScrollView \u0434\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0438\u0437\u0430;  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">scrollAnimator<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">public static Animator scrollAnimator(int start, int end, final View view, int duration) {         ValueAnimator scrollAnimator = ValueAnimator.ofInt(start, end);         scrollAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {             @Override             public void onAnimationUpdate(ValueAnimator valueAnimator) {                 view.scrollTo(0, (int) valueAnimator.getAnimatedValue());             }         });         scrollAnimator.setDuration(duration);         scrollAnimator.addListener(getLayerTypeListener(view));         return scrollAnimator;     } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  4) \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442 alpha \u044d\u0444\u0444\u0435\u043a\u0442 \u043d\u0430 recyclerView.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">alphaAnimator<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">public static Animator alphaAnimator(int start, int end, View view, int duration) {         ValueAnimator alphaAnimator = ObjectAnimator.ofFloat(view, View.ALPHA, start, end);         alphaAnimator.setDuration(duration);         alphaAnimator.addListener(getLayerTypeListener(view));         return alphaAnimator;     } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <a href=\"https:\/\/github.com\/princeparadoxes\/AnimationVsAnimator\/blob\/master\/app\/src\/main\/java\/com\/princeparadoxes\/animationvsanimator\/scroll\/ScrollFragment.java\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434<\/a><\/p>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u043a\u0440\u0430\u0442\u043a\u0438\u0439 \u043e\u0431\u0437\u043e\u0440 Animator \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d. \u0415\u0441\u043b\u0438 \u0432\u044b \u0432 \u043a\u0443\u0440\u0441\u0435 \u043a\u0430\u043a\u0438\u0445-\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u043f\u0440\u0438\u0451\u043c\u043e\u0432, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 Animator \u2014 \u0434\u043e\u043f\u043e\u043b\u043d\u044f\u0439\u0442\u0435 \u0441\u0442\u0430\u0442\u044c\u044e \u0441\u0432\u043e\u0438\u043c\u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438.<br \/>  \u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 Githab: <a href=\"https:\/\/github.com\/princeparadoxes\/AnimationVsAnimator\">github.com\/princeparadoxes\/AnimationVsAnimator<\/a>               <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/274135\/\"> https:\/\/habrahabr.ru\/post\/274135\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u041f\u0440\u0438\u0432\u0435\u0442! \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0414\u0430\u043d\u0438\u043b \u041f\u0435\u0440\u0435\u0432\u0430\u043b\u043e\u0432, \u044f \u0440\u0430\u0431\u043e\u0442\u0430\u044e Android-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u043c \u0432 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u00ab\u041b\u0430\u0439\u0432 \u0422\u0430\u0439\u043f\u0438\u043d\u0433\u00bb, \u0438 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u043d\u0435 \u0432\u044b\u043f\u0430\u043b\u0430 \u0447\u0435\u0441\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043d\u0430\u0448 \u0431\u043b\u043e\u0433 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435. \u0414\u0435\u0431\u044e\u0442\u043d\u044b\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043f\u043e\u0441\u0432\u044f\u0449\u0451\u043d \u0442\u0438\u043f\u0443 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 Animator. \u0421\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u0430 \u0438 \u0442\u0435\u043c, \u043a\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439, \u0438 \u0442\u0435\u043c, \u043a\u043e\u043c\u0443 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u0436\u0435 \u0438\u043c\u0435\u044e\u0449\u0438\u0445\u0441\u044f \u0437\u043d\u0430\u043d\u0438\u0439 \u043f\u043e \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0443. \u0422\u0435\u0445 \u0436\u0435, \u043a\u0442\u043e \u0434\u0430\u0432\u043d\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 \u0442\u0435\u043c\u043e\u0439, \u043c\u044b \u043d\u0430\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e \u043f\u0440\u043e\u0441\u0438\u043c \u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043e\u043f\u044b\u0442\u043e\u043c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445. <\/p>\n<h4>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u2014 Animator?<\/h4>\n<p>  \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u0438. \u0421 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b Android \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a View Animation. \u041f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0430\u043b\u0441\u044f \u043e\u043d, \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0437 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f, \u0434\u043b\u044f \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439. \u041d\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0432 \u043a\u043e\u043d\u0446\u0435 \u043d\u0443\u043b\u0435\u0432\u044b\u0445 \u0431\u044b\u043b\u0430 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0438\u0437\u043a\u043e\u0439, \u0447\u0442\u043e \u043e \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0445 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f\u0445 \u043d\u0438\u043a\u0442\u043e \u043e\u0441\u043e\u0431\u043e \u043d\u0435 \u0434\u0443\u043c\u0430\u043b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u043d\u0435 \u0431\u044b\u043b \u0443\u0434\u043e\u0431\u043d\u044b\u043c \u0438 \u0433\u0438\u0431\u043a\u0438\u043c. \u041e\u043d \u0438\u043c\u0435\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0442\u044b\u0440\u0435 \u0442\u0438\u043f\u0430 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 (TranslateAnimation, AlphaAnimation, ScaleAnimation, RotateAnimation), \u043a\u043b\u0430\u0441\u0441, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0438\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c (AnimationSet), \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043a\u043b\u0430\u0441\u0441\u0430\u043c\u0438, \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u043e\u0442 View. <\/p>\n<p>  \u0412 Android 3.0 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043a\u0443\u0434\u0430 \u0431\u043e\u043b\u0435\u0435 \u0433\u0438\u0431\u043a\u0438\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a Property Animation. \u041e\u043d \u0443\u043c\u0435\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u043b\u044e\u0431\u043e\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043b\u044e\u0431\u044b\u043c\u0438 \u043a\u043b\u0430\u0441\u0441\u0430\u043c\u0438. \u0415\u0433\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f Animator.<\/p>\n<p>  Animator \u2014 \u044d\u0442\u043e \u0442\u0438\u043f \u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0413\u0440\u0443\u0431\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u044d\u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0442\u043e\u043a\u043e\u043c \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043e\u0442 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c\u0443. \u0422\u0430\u043a\u0438\u043c \u043f\u043b\u0430\u0432\u043d\u043e \u043c\u0435\u043d\u044f\u044e\u0449\u0438\u043c\u0441\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e\u043c \u0432 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c.<\/p>\n<p>  \u0418\u0434\u0435\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 Animator \u043e\u0442 View Animation \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e View Animation \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u00ab\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u00bb \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u044f \u0441\u0430\u043c \u043e\u0431\u044a\u0435\u043a\u0442 (\u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 setFillAfter(true), \u043d\u043e \u0441 \u044d\u0442\u0438\u043c \u0444\u043b\u0430\u0433\u043e\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0446\u0435 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438). Animator \u0436\u0435 \u043f\u0440\u0438\u0437\u0432\u0430\u043d \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0441\u0430\u043c\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-279387","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/279387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=279387"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/279387\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=279387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=279387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=279387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}