小编S.T*_*S.T的帖子

如何在 Kotlin 中追加 2 个字符串?

我正在尝试连接 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")

android android-context kotlin

1
推荐指数
1
解决办法
1万
查看次数

标签 统计

android ×1

android-context ×1

kotlin ×1