Android resource loading
Does android all deflate images in the apk when it first runs?
For example, I have different .png
s 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.
精彩评论