开发者

flickering Translate animation in Android

开发者 https://www.devze.com 2023-02-11 13:32 出处:网络
I have a HorizontalScrollView with a LinearLayout in it. The Linerlayout has images in it. When i use TranslateAnimation to move the image from one x-coord开发者_开发知识库inate to another x coordinat

I have a HorizontalScrollView with a LinearLayout in it. The Linerlayout has images in it. When i use TranslateAnimation to move the image from one x-coord开发者_开发知识库inate to another x coordinate. the animation is very flickring. The image size is around 2400 pix wide and 100 pix height.

I can't find a way to prevent the filckring with TranslateAnimation. Any ideas ?


Are you testing this on the emulator or a real device? The emulator can be pretty jerky sometimes.

0

精彩评论

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

关注公众号