HK.avdalyan
HK.avdalyan

Reputation: 734

Multilingual application images

In my app I want show some image if the language is English and another image when the language is something else. I did it with the strings in string.xml by providing values-ru and other values folders. But I don't know how to change image like that.

Upvotes: 1

Views: 47

Answers (2)

Alex
Alex

Reputation: 3382

You can use it for example drawable-ru-xhdpi etc like you did it with the values folders

Upvotes: 2

Kuffs
Kuffs

Reputation: 35651

You do it in exactly the same way as you did with strings.

Create a folder called drawable-ru in your res folder and this folder will be used for your drawables if the user is using Russian language.

Upvotes: 2

Related Questions