Android animation for 1 second
<p>I am trying to make a page where when the user leaves the page, there will be an animation (eg.: button will slide out) in the page and after that, the user will be sendt to a different activity.</p>

<p>No issue with the animation, but as the code for starting the new activity is written just after the animation code, the animation is not completing for 1 second (as I have set). </p>

<p>I want to execute the animation for 1 second first and then move to another activity. </p>

<p>Please help me.</p>
