Ok this is going to be worded weird but I was wondering if there was a way to set one of the string values in values/strings.xml to a static final variable from one of the .java files. For example say I have the following basic class:
public class ConstantValue {
public static final String VALUE = "custom val";
}
and I would get this value in the strings.xml file like so:
idea code
<string name="custom_val">com.package.ConstantValue.VALUE</string>
Is there any way to do this?
strings.xmlis compiled into a class of its own before the build gets to your actual activity source code. This is why the string bundle is available for use in your Java code. I could not find documentation on this, hence this remains as a comment.