Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is any way to use this library with TextInputEditText? #30

Open
javierdiaziut opened this issue Sep 18, 2021 · 1 comment
Open

Comments

@javierdiaziut
Copy link

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>
@VicMikhailau
Copy link
Owner

VicMikhailau commented Sep 18, 2021

Hi,
Just use MaskedWatcher.kt like described in Readme or create own implementation of TextInputLayout based on it (see MaskedEditText.kt).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants