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

StackOverflow https://stackoverflow.com/questions/7349851

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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top