Как импортировать файл из папки res в студии Android с помощью Kotlin?Android

Форум для тех, кто программирует под Android
Гость
Как импортировать файл из папки res в студии Android с помощью Kotlin?

Сообщение Гость »


I created a recyclerView variable in an xml named

Код: Выделить всё

activiy_main.xml
and i want to access it in the MainActivity file
I tried different ways to import the xml file but I get an error each time.
I added a picture of the navigation in the project, what am I missing?
enter image description here


Источник: https://stackoverflow.com/questions/781 ... ith-kotlin

Вернуться в «Android»