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

No round pin view input #89

Closed princessdharmy closed 2 years ago

princessdharmy commented 4 years ago

@mukeshsolanki There is no pin box's background, to accept a drawable or a selector drawable

For instance, the image below shows this by default then changes to a custom color on pin entered. 20200218_115949

mukeshsolanki commented 4 years ago

@princessdharmy im not sure I fully understand what you are trying to achieve here can you provide me some more detail?

GvinPin47 commented 3 years ago

@mukeshsolanki i also faced with the same issue like @princessdharmy, i want use different drawable for android:itemBackground via selector drawable smt like this

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_selected="true" >
        <shape android:shape="rectangle">
            <corners android:radius="10dp" />
            <stroke android:width="1dp" android:color="@color/primaryColor" />
            </shape>
    </item>
    <item android:state_focused="true" >shape..</item>
    <item > shape...</item>
</selector>
princessdharmy commented 3 years ago

@mukeshsolanki sorry for the late response. I can't say precisely what the issue was since it has been a long time I tried my hands on the library. I presume @GvinPin47 must have a similar experience.

mukeshsolanki commented 2 years ago

stale