Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
589 views
in Technique[技术] by (71.8m points)

android - FlipAnimation causing issue in 4.4.3

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.

Here i am sharing my sample code,

[link]https://www.dropbox.com/s/ouphj2h2u691753/TestAnimation.zip)

Please check and see the issue.

enter image description here

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

Rendering glitch on View since Android 4.4.3

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...