mukeshsolanki / android-otpview-pinview

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

View not clickable focusable. Cannot input any digit and open keyboard #98

Closed davran312 closed 4 years ago

davran312 commented 4 years ago

Subject of the issue

After setup view. Cannot input anything

Steps to reproduce

 <com.mukesh.OtpView
        android:id="@+id/et_otp_view"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:viewType="line"
        app:lineColor="@color/lightGray"
        android:textColor="@color/textNumberColorPrimary"
        android:inputType="number"
        android:layout_marginTop="@dimen/vertical_huge_margin"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toBottomOf="@id/tv_enter_pin_code"/>

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

JibuVarghese commented 4 years ago

@davran312 you might forget to add @style/OtpWidget.OtpView in your style.

akshat8-7 commented 4 years ago

Did you solve this issue ?

imranshad commented 4 years ago

@davran312 you might forget to add @style/OtpWidget.OtpView in your style.

also make sure to add style

<com.mukesh.OtpView
.............
style="@style/OtpWidget.OtpView"
.................. />