<Button
android:id="@+id/createBirthdayButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="60dp"
android:text="@string/create"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/nameInput"
android:padding="30dp"
android:textColor="@color/colorPrimaryDark"
android:clickable="true"
android:onClick="createBirthdayCard"/>
fun createBirthdayCard(view: View) {
Toast.makeText(this, "Button",Toast.LENGTH_LONG).show()
}
On clicking, toast does not show.