RetypePasswordInputFormView
RetypePasswordInputFormView is an implementation of InputFormField
which contains two PasswordTextInputLayout
. It is design to request password when the user needs to create a password. RetypePasswordInputFormView provides the validation of matching the same value in both password fields.
Usage
You can set it up in code or in the layout:
In code:
val passwordTextInputLayout: PasswordTextInputLayoutval retypePasswordTextInputLayout: PasswordTextInputLayout
In the layout:
<com.poqstudio.platform.view.account.inputform.retypepassword.ui.PoqRetypePasswordInputFormView android:layout_width="match_parent" android:layout_height="wrap_content" app:password="@={viewModel.password}" /> // It allows two-way data binding