I know this is a pretty simple question but idk how to do it:
I have this button:
<Button
android:id="@+id/btnGo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:layout_gravity="center" />
I want to add a listener in my main class, but I can’t import the button, how to do it?
2
Answers
Import
Java
Kotlin