Slow App with Background image

后端 未结 7 1208
情话喂你
情话喂你 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:40

    The main reason you're noticing the lag is because the image needs to because you need to copy your background image to all the drawable folders (drawable-hdpi,drawable-xhdpi...etc.) . I use the Android Studio plugin named Android Drawable Importer for automating. Works like a charm.

提交回复
热议问题