In Android, to access a string from the strings.xml file, we use R.string.string_id. Would it be possible to have a method such that we’ll use the string form of string_id? I mean can we for example have a method GetString("string_id") to retrieve R.string.string_id?
In Android, to access a string from the strings.xml file, we use R.string.string_id .
Share
1 Answer