lundi 1 décembre 2014

How to slide down a logo from outside the screen?


Vote count:

0




I'm trying to do a splashscreen where a logo appears from the top of the screen, and stop at the center of the screen.


I do this XML for the anim:



<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:android="http://ift.tt/nIICcg"
android:interpolator="@android:anim/linear_interpolator"
android:fillAfter="true">

<translate
android:fromYDelta="0%p"
android:toYDelta="75%p"
android:duration="3000" />
</set>


And this method to load the movement



Animation fadein = AnimationUtils.loadAnimation(getActivity(), R.anim.fadein);
background.startAnimation(fadein);
background.setVisibility(ImageView.VISIBLE);

// load the animation
Animation animMoveDown = AnimationUtils.loadAnimation(getActivity(), R.anim.movedown);

// set animation listener
animMoveDown.setAnimationListener(this);
overlay.startAnimation(animMoveDown);


How I can put the logo out the screen and slide down to the center? Is it possible?



asked 33 secs ago







How to slide down a logo from outside the screen?

Aucun commentaire:

Enregistrer un commentaire