开发者

Animating from offscreen with TranslateAnimation causes adjacent view to be clipped

开发者 https://www.devze.com 2023-03-08 14:11 出处:网络
Right now I have a view that I\'m just popping onto the screen by changing the view from GONE to VISIBLE, and I instead want to have a TranslateAnimation that shifts the view onto the screen. As soon

Right now I have a view that I'm just popping onto the screen by changing the view from GONE to VISIBLE, and I instead want to have a TranslateAnimation that shifts the view onto the screen. As soon as the animation starts the view on the right becomes clipped though. I assume this is because the parent view is taking the width of the view o开发者_如何学Cn the left and factoring that into the view calculation? Is there any way to not have that happen, so it looks like both views are shifting onto and off of the screen? Setting

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

didn't seem to help


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

0

精彩评论

暂无评论...
验证码 换一张
取 消