how can i reference something in the /values/strings.xml file programatically?

game4v.vn

New Member
i had some items in my strings.xml file that i want to change programatically, and originally i was doing it through a \[code\]setText();\[/code\]call but now i am attempting to translate my app to a different language which means everything needs to be set in my strings.xml file. is it possible to put all the text for my app into a strings.xml and change things programatically through references to the string names, instead of using the setText() function call? for example how would i reference "GrandTotal"?\[code\]<string name="GrandTotal">Grand Total:</string><string name="choose_prompt">Choose a Mode</string>\[/code\]
 
Back
Top