I tried the following code for concatenation of 'number'(integer variable) and '$'(string) but I got a warning from android studio: "Do not concatenate text displayed with setText. Use resource string with placeholders." and suggested me to add "@SuppressLint("SetTextI18n")
". After this the warning was gone.
What was the issue with concatenating the string. And why do we need to add
@SuppressLint("SetTextI18n")
fun displayPrice(number: Int){
price_text_view.text= "$number$"
}