Moving a view perfectly from one side to another in Android using Animations
<p>I want to have a block start perfectly off of the screen, and then have it move across the entire screen so that it becomes invisible.</p>

<h2>This is a graphic of what it should look like:</h2>

<p><img src="http://i.stack.imgur.com/kc8xU.png" alt="enter image description here"></p>

<h2>And this is my code:</h2>

<pre><code>public class Move extends Activity {
    TranslateAnimation moveup;
    Button btn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_move);

        moveup = new TranslateAnimation (Animation.RELATIVE_TO_PARENT, 0, Animation.RELATIVE_TO_PARENT, (float) .99, Animation.RELATIVE_TO_PARENT, 0, Animation.RELATIVE_TO_PARENT, 0);
        moveup.setDuration(6000);
        moveup.setFillAfter(true);
        btn = (Button) findViewById(R.id.btn);

        btn.startAnimation(moveup);

    }
</code></pre>

<p>I want to know if this is possible just using parameters in the TranslateAnimation method. I feel like I should be able to, but my parameters aren't correct.</p>
