Slow App with Background image

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

    I was in the same position as you. I have a very simple app and it has lags when i add some background. Try this app 9-patch-resizer - Transform the image dimensions for all screens

    And then comes this tool, that takes a xhdpi PNG file, or 9.png file, and generates ldpi, mdpi and hdpi png files automatically.

    When it transoforms the image , move the each file to its own project folder (resources/mipmap-hdpi ,mipmap-xhdpi ...etc)

提交回复
热议问题