Screen animations using TranslateAnimation crop an adjacent view

Now I have an idea that I just appear on the screen, changing the view from GONE to VISIBLE, and instead want to have TranslateAnimation, which moves the view to the screen. As soon as the animation begins, the view on the right becomes cropped. I suppose this is because the parent view takes the width of the left view and factoring, what is in the calculation of the view? Is there a way to prevent this from happening, so it looks like both types are moving to the screen on and off? Installation

android:clipChildren="false" android:clipToPadding="false" 

doesn't seem to help

+6
source share
1 answer

Try setting android: clipChildren = "false" android: clipToPadding = "false" on the parent container

+1
source

Source: https://habr.com/ru/post/889183/


All Articles