Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is possible use drawable-mdpi-fr, drawable-hdpi-fr, drawable-ldpi-fr, for localization with different resolutions

I want to use different images for different localisations. However, I have images for all resolutions and for all languages. Is there any way to do this?

like image 524
Pedro Silva Avatar asked Sep 08 '11 14:09

Pedro Silva


People also ask

Is there a way to create Xxhdpi Xhdpi Hdpi Mdpi and LDPI Drawables from a large scale image?

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.

What is drawable Hdpi?

these are image folders for different densities. hdpi images for the Android Broad Screen set or Android Phones with the Higher resolution. ldpi Lower images quality supported by the earlier sets of the android. mdpi for medium images support. xhdi devices with maximum resolution.

How do I make a drawable Xxhdpi folder?

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 .


2 Answers

yes, it is possible by. drawable-de-rDE-ldpi,drawable-de-rDE-mdpi . check it.

like image 159
Chirag Avatar answered Sep 20 '22 11:09

Chirag


Is possible use drawable-mdpi-fr, drawable-hdpi-fr, drawable-ldpi-fr, for localization with different resolutions

Yes.

Obviously, this gets tedious for too many translations, and if there are too many affected images your APK size may grow substantially. Since Android will automatically rescale images, you might try just res/drawable-fr-xhdpi/ and see what it looks like on lower-density devices.

like image 39
CommonsWare Avatar answered Sep 20 '22 11:09

CommonsWare