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

OtpLineColor not working in version 3.1.0 #162

Closed huynguyen252 closed 4 months ago

huynguyen252 commented 7 months ago

I use this function to set the color for the focused text box in version 2.0.0. However, in version 3.1.0, it is not working and is instead inheriting the itemBackground color.

fun setColorStateSelection(selectedColor: Int, unselectedColor: Int) { val states = arrayOf( intArrayOf(android.R.attr.state_selected), intArrayOf(-android.R.attr.state_selected), ) val colors = intArrayOf( selectedColor, unselectedColor ) val myList = ColorStateList(states, colors) setLineColor(myList) }

stale[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 months ago

This has been closed with no activity