I am creating a android app in which I want the login screen like facebook.When you open a facebook android app.first "FACEBOOK" text appears in the center of the screen and then it slides up after some time.and userid and password appears with a button.
I want similar kind of animation in my application.
How do i do that. I am using following method
my animate.xml file
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/linear_interpolator" >
<translate android:duration="2000"
android:fromYDelta="0"
android:toYDelta="-100%p" />
</set>
and the java code.
final Animation animAccelerateDecelerate = AnimationUtils.loadAnimation(this, R.drawable.animatetext);
final TextView text = (TextView)findViewById(R.id.Logo);
text.startAnimation(animAccelerateDecelerate);
but its not working out.. help please thanks