Open javierdiaziut opened 3 years ago
I want to use this library with this:
<com.google.android.material.textfield.TextInputLayout android:id="@+id/inputLoginPass" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginStart="15dp" android:layout_marginTop="5dp" android:layout_marginEnd="15dp" android:backgroundTint="@color/light_blue_background" android:textColor="@color/blue_button" app:boxStrokeWidth="0dp" app:boxStrokeWidthFocused="0dp" app:hintEnabled="false" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/textLabelPass" app:passwordToggleEnabled="true" app:passwordToggleTint="@color/blue_button">
<com.google.android.material.textfield.TextInputEditText android:id="@+id/etLoginPass" android:layout_width="match_parent" android:layout_height="match_parent" android:backgroundTint="@color/light_blue_background" android:fontFamily="@font/opensans_regular" android:inputType="textPassword" android:maxLines="1" android:paddingTop="18dp" android:paddingBottom="18dp" android:textColor="@color/blue_button" /> </com.google.android.material.textfield.TextInputLayout>
Hi, Just use MaskedWatcher.kt like described in Readme or create own implementation of TextInputLayout based on it (see MaskedEditText.kt).
MaskedWatcher.kt
TextInputLayout
MaskedEditText.kt
I want to use this library with this:
<com.google.android.material.textfield.TextInputLayout android:id="@+id/inputLoginPass" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginStart="15dp" android:layout_marginTop="5dp" android:layout_marginEnd="15dp" android:backgroundTint="@color/light_blue_background" android:textColor="@color/blue_button" app:boxStrokeWidth="0dp" app:boxStrokeWidthFocused="0dp" app:hintEnabled="false" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/textLabelPass" app:passwordToggleEnabled="true" app:passwordToggleTint="@color/blue_button">