I have a stringDef/ TypeDef class as follows
public class Codes {
public static final String Code_1 = "Code1";
public static final String Code_2 = "Code2";
public static final String Code_3 = "Code3";
@Retention(RetentionPolicy.SOURCE) @StringDef({
Code_1, Code_2, Code_3 })
public @interface CodesMessageDef {
}
}
I would like to set values of Code_1,2,3 from R.String.code_1 rather than manually entering.
Is there any way to achieve this usecase.
Thanks in advance.........