Is It Possible To Override Android String Resource From External Aar Library?
I have a project that depends on third-party library (aar). I want to change some strings in this library (they are defined in strings.xml of the library). Is it possible to overri
Solution 1:
Yes, you can do it, but you have to override all languages in which the string is written.
Assume that the following string is in a third-party library in res/values
folder.
<string name="msg">Message</string>
And this is in the library res/values-it
folder:
<string name="msg">Messaggio</string>
You have to override both in your app, so, in your res/values
folder, you can do:
<string name="msg">My newstring</string>
And in res/values-it
, you can do:
<string name="msg">La mia stringa</string>
Post a Comment for "Is It Possible To Override Android String Resource From External Aar Library?"