FlipAnimation导致问题4.4.3问题、FlipAnimation

2023-09-05 02:34:39 作者:黯然嗜睡

我的关系5.就面临翻转动画的一个问题,在4.4.3奇巧这是好当的操作系统是4.4.2,但更新我的关系4.4.3动画suffers.I后,我使用翻转动画在布局哪些包含一个web视图和旋转图标。至此之后做R&安培; D我发现的WebView导致问题。如果我加载链接直接的WebView,要么翻转动画患有或旋转图标吃亏,但如果我不加载链接直接的WebView所有动画工作正常。

I am facing an issue regarding flip animation in 4.4.3 KITKAT in nexus 5. It was good when OS was 4.4.2 but after updating my nexus to 4.4.3 animation suffers.I am using flip animation over a layout which contains a webview and a rotating icon. So far after doing R&D i found that webview is causing the issue. If i load the url to webview , either flip animation suffers or rotating icon suffer but if i don't load the url to webview all animation is working properly.

我在这里分享我的样品code,

Here i am sharing my sample code,

[链接] https://www.dropbox.com/s/ouphj2h2u691753/TestAnimation .ZIP )

请检查,看看问题。

正如你所看到的影像,当我们开始翻转动画,布局是轻微的背景透明是打破镜子一样,你可以看到周围的WebView补丁。

As you can see image when we start flip animation, background of layout that is slight transparent is break like mirror you can see the patches around webview.

推荐答案

这可能与渲染问题4.4.3,在这个问题的详细:

This might be related to a rendering problem in 4.4.3, as detailed in this issue:

渲染毛刺上查看由于Android 4.4.3

我们在用的WebView (为广告)和一个旋转的动画的布局看到这一点。尝试的WebView层类型设置为 View.LAYER_TYPE_SOFTWARE 来解决该问题。

We saw this in an layout with a WebView (for ads) and a rotate animation. Try setting the layer type of the WebView to View.LAYER_TYPE_SOFTWARE to work around the problem.