Skip to content Skip to sidebar Skip to footer

Move View Itself To Animation's End Position

I'm having a real serious problem. I want to implement UI where some view is moving on the screen and the user can touch it. I know that regular API-1 Animation framework move just

Solution 1:

But I can't find a way to move the view to the animation's end position.

Modify its LayoutParams to move it to the end position. Use getLayoutParams() on the View, cast it to the appropriate type based on its container, modify the LayoutParams object, then call setLayoutParams() on the View to commit the changes.

Post a Comment for "Move View Itself To Animation's End Position"