Animate button from bottom center horizontal to center in parent?
<p>I need to animate a button from the center horizontal bottom of the screen to the center parent of the screen.I have used the following code from other references in stack overflow but the animation is from bottom slightly to the left upto above the center of the screen.I am facing problem understanding the parameters to change.Could someone also post some link where i can get more details regarding the position of the screen to animate to and from.</p>

<pre><code>Following is my code in anim folder:
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;translate android:fromYDelta="100%p" android:toYDelta="0%p" android:duration="300"/&gt;
&lt;/set&gt;

In java Code:
Animation a = AnimationUtils.loadAnimation(this, R.anim.alpha);
            a.reset();
            TextView tv = (TextView) findViewById(R.id.textView1);
            tv.clearAnimation();
            tv.startAnimation(a);
</code></pre>
