Slow App with Background image

后端 未结 7 1224
情话喂你
情话喂你 2021-02-01 03:19

I am making a small game for android. It is working smoothly when its working on a white background but when i want to put a background image, its becoming slower and slower. Fi

7条回答
  •  悲&欢浪女
    2021-02-01 03:37

    Recently i had the same issue and no answer helped me.But after playing with codes so many hours i found an amazing solution.What you have to do is copy your background image to all the drawable folders (drawable-hdpi,drawable-xhdpi...etc.) and thats it. And also my background image is png with 590kb file size. Be careful with image size because higher the size is slower the app. Hope this help to someone. :-)

提交回复
热议问题