I am making an app in two different languages.
For the header of the app, I used this code.
private fun showAllResults() {
val listOfAllResult = dbHelperI.getAllQrScannedResult()
showResults(listOfAllResult)
mView.tvHeaderText.text = "Recent Scanned Results"
}
Then I made the text on R.string, but it shows numbers, not the text. How can I use R.string on this code without error?
private fun showAllResults() {
val listOfAllResult = dbHelperI.getAllQrScannedResult()
showResults(listOfAllResult)
mView.tvHeaderText.text = R.string.recent_scanned_results.toString()
}