How can I tell Android to read from a different resourse for different Api levels?



Is there any way that I can customize my app so that it loads its strings from different strins.xml files for different Android versions?


I know about locales and that is NOT what I'm looking for. I want android to get its strings from strings_a.xml when Api level is 11 or lower and from strings_b.xml with api levels 12+.


I am not willing to check for android.os.Build.VERSION.SDK_INT in my code everywhere I am setting a string.


No comments:

Post a Comment