开发者

Android - Frame by frame animation, over 100 frames workaround?

开发者 https://www.devze.com 2023-04-02 05:28 出处:网络
I would like to perform the operation stated in the title. Code works absolutely fine for 20 frames. However when I run the program for 50 frames, the buttons within the activity stops responding.

I would like to perform the operation stated in the title. Code works absolutely fine for 20 frames. However when I run the program for 50 frames, the buttons within the activity stops responding. When I run the program for 100 frames there is only a black screen followed by the error "this program terminated abnormally".

The method I use is to define an animation list on an xml file and set it as background.

I think I have to use a more advanced approach. Any suggestion开发者_运维技巧s ?

Thanks.


The problem was the wrong usage of constraints and folders.

The images where staying at the location /drawable-ldpi

When I relocated the images to the location /drawable-hdpi

The problem was solved.

0

精彩评论

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