Animate top and bottom dimensions of a view

Viewed 2203

I need to do two things with a view:

  1. Move top dimension to the very top of the window
  2. Move bottom dimension to the very bottom of the window.

In short, I need the view to cover 100% of the parent view.

Translation animation didn't work because it moves the view but it doesn't increase the size.

Scale animation works but it stretches the content of the view and I don't want that. I want to increase the visible area, not stretch the content to fit the new dimensions.

What's the correct way to do this?

6 Answers
Related