所以我开始使用 kotlin 课程观看 android 开发。解释的人使用“R”而没有解释任何有关它的内容。我尝试搜索文档,但找不到任何内容。
这是一个示例代码:
when(...) { ... R.id.btn9 -> btnID=9 // where btn9 is an id of a button in the UI }
android kotlin
android ×1
kotlin ×1