How to find out IDs or names of preloaded system drawables (bitmaps) from memory dump

后端 未结 3 1782
滥情空心
滥情空心 2021-02-10 04:45

I\'m analyzing memory usage of our app, and has found strange Drawables, which constantly \"eats\" few megabytes of heap. Here are few screenshots from MAT:

3条回答
  •  隐瞒了意图╮
    2021-02-10 05:12

    This picture from android.jar, which you have to include into your project. There are two squares with the vertical gradient. The first - from 0x000000 to 0x272d33, the second - from 0xe8e8e8 to 0xfafafa. You can find them in android.jar/res/drawable-nodpi/background_holo_dark.png and background_holo_light.png. Of course, you can get different results depending on your Android SDK version.

提交回复
热议问题