开发者

ViewFlipper FLICKERING problem?

开发者 https://www.devze.com 2023-01-19 01:03 出处:网络
I have a ViewFlipper with two ImageView widgets. I 开发者_运维知识库have set the in and out animation as android.R.anim.slide_in_left and android.R.anim.slide_out_right

I have a ViewFlipper with two ImageView widgets. I 开发者_运维知识库have set the in and out animation as android.R.anim.slide_in_left and android.R.anim.slide_out_right

Now when the two ImageViews have two different drawables, then the animation is sleek and smooth. But when I set the both the ImageViews to the same Drawable, the screen flickers. Why is this happening and how do I prevent it?


I think you might want to use Drawable.mutate() to prevent the drawable from being reused. :-)

0

精彩评论

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