How can i put a variable in string.xml?
I have a variable settings in this way:
String result = " Non in carica";
String resultusb = " No";
--
--
if (isCharging) {
result = " In carica";
}
if (usbCharge){
resultusb = " Si";
}
The variable result or resultusb assuming two values depending on the
situation..there is no TextView only this, Only one variable with more
values. I need translate them so i have to put them in the strings.xml..
How can i do it? How can i translate them?
No comments:
Post a Comment