mukeshsolanki / android-otpview-pinview

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

not open keyboar #85

Closed alirezat66 closed 4 years ago

alirezat66 commented 4 years ago

Subject of the issue

I use this library and when I click on it , not open keyboard

Steps to reproduce

Tell us how to reproduce this issue. Please provide a working demo.

Expected behaviour

It must open keyboard

Actual behaviour

Not open keyboard

andre-sonect commented 4 years ago

Same issue here, keyboard does not open when click.

ashishghadi27 commented 4 years ago

Did you add the style in styles.xml?

anantshah93 commented 4 years ago

Same issue

anantshah93 commented 4 years ago

Hi all, Please add this in your style.xml

It will show the keyboard. - Solved Not bug

Zulqurnain commented 4 years ago

Adding <item name="otpViewStyle">@style/OtpWidget.OtpView</item> still same issue, keyboard doesn't open

anantshah93 commented 4 years ago

@Zulqurnain pls share your style.xml and your layout.xml where you have coded this layout

inossan-dev commented 4 years ago

I fix this issue by adding this attribute style="@style/OtpWidget.OtpView" in my OtpView

inossan-dev commented 4 years ago

Like this:

<com.mukesh.OtpView
     android:id="@+id/otp_view"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:inputType="numberPassword"
     android:textColor="@color/amount"
     android:layout_gravity="center"
     app:itemCount="4"
     style="@style/OtpWidget.OtpView"
     android:cursorVisible="false"
     app:lineColor="@color/amount"
     app:state_filled="false"
     app:viewType="none"/>