MaskedEditText icon indicating copy to clipboard operation
MaskedEditText copied to clipboard

There is any way to use this library with TextInputEditText?

Open javierdiaziut opened this issue 2 years ago • 1 comments

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>

javierdiaziut avatar Sep 18 '21 02:09 javierdiaziut

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

VicMikhailau avatar Sep 18 '21 04:09 VicMikhailau