Issue
I have put an image in drawable folder and in drawable-xhdpi
, drawable-mdpi
, drawable-hdpi
folders.
I know that android uses the image that is compatible with the screen density, but i want to know what android will do if the same image is in drawable
folder, does android give priority to drawable
folder, or it will follow the same approach, and does not check drawable
folder first for image.
Solution
It prefers the most specific. So it will use the drawable folder only if there is no override in another folder. The drawable folder is a good place to put things like xml drawables which usually aren't effected much by dpi, screen size, etc.
Answered By - Gabe Sechan
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.