How to translate a button from its relative position to the bottom of the screen?
<p>I would like to translate a button from its relative position to the bottom of the screen.</p>

<p>I am doing the TranslateAnimation using Java code.</p>

<p>The following is the code snippet of what I've already did:</p>

<pre><code>Display display = getWindowManager().getDefaultDisplay();
int screenHeight = display.getHeight();
translateButtonAnimation = new TranslateAnimation(Animation.RELATIVE_TO_SELF, Animation.RELATIVE_TO_SELF, Animation.RELATIVE_TO_SELF, height);
</code></pre>

<p>The result is that the button fly outside of the emulator screen!! :(</p>

<p>Thanks in advance for your help.</p>
