Ayden
10/14/2020, 9:59 AMDialog
after the onClick action?
The onClick
action is bound with the QuoteViewModel
.
I would assume the ViewModel
should not in charge of closing the Dialog
, since the responsiblity of the ViewModel is to process and manipulate the data.
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_submit_quote"
...
android:onClick="@{(view) -> quoteViewModel.save()}"
android:text="@string/submit"
... />
Nicolas Chaduc
10/14/2020, 10:16 AM