开发者

Android resource loading

开发者 https://www.devze.com 2023-03-25 06:34 出处:网络
Does android all deflate images in the apk when it first runs? For example, I have different .pngs in a drawable directory. When does android deflate images and load them in memory?

Does android all deflate images in the apk when it first runs?

For example, I have different .pngs in a drawable directory. When does android deflate images and load them in memory?

Does it only do it when I execute the code like:

开发者_StackOverflow中文版
imageView.setImageResource(R.drawable.myimage)


Yes, that's exactly when they get "deflated", whenever you reference an drawable resource from R.java.

0

精彩评论

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