mukeshsolanki / android-otpview-pinview

A custom view to enter otp of different sizes used usually in cases of authentication.
MIT License
699 stars 207 forks source link

Cannot paste the OTP #135

Closed akshshah closed 2 years ago

akshshah commented 2 years ago

Solution: Use version 2.1.2

        ```
<com.mukesh.OtpView
                android:id="@+id/otp_view"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:layout_marginTop="@dimen/scale_60dp"
                android:inputType="number"
                android:text="@={viewModel.requestParam.code}"
                android:itemBackground="@color/white"
                android:textColor="@color/colorPrimary"
                android:textSize="24sp"
                app:OtpItemCount="6"
                app:itemSpacing="8dp"
                app:OtpLineColor="@color/colorPrimary"
                app:OtpViewType="line"
                app:OtpState_filled="true" />