我正在尝试连接 2 个字符串,但不知道如何去做。
这是我的代码:
val word = R.string.word
Run Code Online (Sandbox Code Playgroud)
我试图将它附加到"$currentPage/5"里面我试图以这种方式
和这种方式setText("$currentPage/5")
制作它
,但它不起作用,它只显示数字而不是文本setText("$word $currentPage/5")setText("${R.string.value} $currentPage/5")