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?
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.
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.
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 .
yes, it is possible by. drawable-de-rDE-ldpi,drawable-de-rDE-mdpi . check it.
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.
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