When I create a new project ,my Android studio 1.0 do not display drawable-hdpi , drawable-xhdpi, drawable-mdpi and drawable-xxhdpi . I don't konw the reason. This is my res directory structure |--res |--drawable |--layout |--menu |--values Someone help?
Option #1: Just ship the -xxhdpi drawables and let Android downsample them for you at runtime (downside: will only work on fairly recent devices, where -xxhdpi is known). Option #2: Use Android Asset Studio to downsample them for you. Option #3: Automate the process within a graphics editor, per ssantos' answer.
Simply go to project Explorer and change your View from Android to project from drop Down and you are good to go. There you can simply create folder like we do in Eclipse. And in android project view it is hidden but when you switch to project. You can create folder like drawable-hdpi,drawable-xhdpi .
if you use R. drawable. tree then system will choose automatically depending on the screen density. now if you want different image for diffeent resolution you can use different images to show in your app.
Drawable xhdpi 官网 Compatible with IntelliJ IDEA (Ultimate, Community, Educational), Android Studio and 13 more. Quickly and easily convert images into images of various densities (LDPI, MDPI, HDPI, XHDPI, XXHDPI, XXXHDPI) used by Android.
This is most likely because your project explorer is viewing them in Android mode. Above the folders there should be a dropdown button which you can choose to view them in Project mode. You should now be able to see the other drawable folders.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With