find it by id or use data binding
use viewbinding
https://developer.android.com/topic/libraries/view-binding
use view binding
Val btnAdd = findViewById(R.id.btnadd)
Create a variable and store your value. Like this 👇 Val btnAdd = findViewById(R.id.btnadd)
DOne
use viewBinding RTFM
I have done it
as your usrname
Обсуждают сегодня