I need help with create set of animation. I create set of Slide to top and fade out but can't add right / left view move. Here is my code.
Animation fadeOut = new AlphaAnimation(0.6f,0); fadeOut.setInterpolator(new AccelerateInterpolator()); //add this fadeOut.setDuration(4000); Animation slide = new TranslateAnimation(Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, -5.0f); slide.setDuration(8000); slide.setFillAfter(true); slide.setFillEnabled(true); AnimationSet animSet = new AnimationSet(true); animSet.setFillEnabled(true); animSet.addAnimation(slide); animSet.addAnimation(fadeOut); view.startAnimation(animSet); Other words - I want to create something like periscope heart animation. I would be grateful for any help.
No comments:
Post a Comment