Question

I understand how to localize assets based on language and region. As per this post: Localization and drawables

For example, to target the French speakers in Canada, I would name my folder: drawable-fr-rCA-hdpi

But what if I only want to target devices that are set to the Canada locale, without worrying about language, would I simply do drawable-rCA-hdpi? I have not found any documentation on this and would appreciate any help.

Was it helpful?

Solution

See http://developer.android.com/guide/topics/resources/providing-resources.html, table 2. Region cannot stand alone. You must specify either language or language+region.

OTHER TIPS

I don't think you can.
Either set language or language+region, but not region only.

In your case, you can duplicate the resources in drawable-en-rCA-hdpi and drawable-fr-rCA-hdpi

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top