android - How to implement an application to take image from appropriate folder? -


I am working on the Android app because it should be helpful in all screen sizes. But it is not working properly. I can determine whether it will get a picture from the picture-HDPI folder for 480 × 800 size?

The screen size and the DPI are not the same thing DPI is a pixel per inch number is still a 480x800 screen It can be at any DPI level - it will be a small screen with only high DPI

You can try to override the size with Drawable-SWNdp where N is a pixel value. It works for layouts, I believe it works for drawables.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -