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

2

27

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?

Macedoine answered 8/9, 2011 at 14:41 Comment(0)
R
27

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

Reception answered 27/9, 2011 at 12:25 Comment(0)
S
22

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.

Sissie answered 8/9, 2011 at 14:51 Comment(3)
I think the language code comes first, so it should be res/drawable-fr-xhdpi/Tap
@candiru: Absolutely correct -- I have corrected the non-quoted portions of my answer to match. My apologies.Sissie
@Sissie ..... i have an question..please help!!! I want the spainsh drwable for my app, so i have created the resource folder like drawable-hdpi-es , drawable-xhdpi-es, drawable-xxhdpi-es,drawable-xxxhdpi-es Is it right or m i doing somethong wrong..please help sirBetz

© 2022 - 2024 — McMap. All rights reserved.