Animated Layout Mask

jamgood96

New member
Oct 14, 2013
1
0
0
Visit site
Hi All,

I'm not sure the best way to explain what I'm trying to do, and Googling it has proven to be quite difficult, so my apologies if I'm long winded at all...

Basically, I want to have a couple of layouts and have one of them animate to reveal the layout below. I've attached a crude image of what I'm attempting to do.

As the top layout animates out of the way, I want all of its contents to remain in their relative positions. The same goes for the layout behind.

I have tried setting one of the layout's height to 0 and then animated it to be full height, but this reeks havoc on the scaling and the placement of the elements inside. I also tried implementing the solution in the link below, but it didn't do what I needed.

Is it possible to mask a View in android? - Stack Overflow

I hope this makes some sense. Any guidance would be greatly appreciated!

- James
 

Attachments

  • android.png
    android.png
    25.8 KB · Views: 1

Trending Posts

Forum statistics

Threads
943,116
Messages
6,917,357
Members
3,158,829
Latest member
ParkerAdams