Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you localize drawable-nodpi?

The documentation seems to imply you can't do localization AND resolution targetting.

Can anyone tell me how you can go about localizing drawable-nodpi?

Eclipse returns an invalid resource directory name error.

I'm targeting Android 2.2 only so if there are more recent ways to solve this, would be great to hear about them.

like image 260
Tristan Warner-Smith Avatar asked Sep 03 '10 23:09

Tristan Warner-Smith


2 Answers

So the answer is, rather than pathing with drawable-nodpi-de-rDE you put drawable-de-rDE-nodpi.

Format: {resource}-{language}-r{region}-{resolution}

Documentation is particularly lacking in examples.

like image 186
Tristan Warner-Smith Avatar answered Sep 22 '22 23:09

Tristan Warner-Smith


At First, Run Time Executing drawable folder's(like drawable-ldpi,drawable-nodpi,values-long,etc) are supports in Android 1.6 or later version only. if you want support your app which has developed using Android 1.5. you have to note -v which is in the Strategies for Legacy Applications topic

like image 39
Praveen Avatar answered Sep 22 '22 23:09

Praveen