开发者

Android resource loading

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜