Closed huynguyen252 closed 4 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.
This has been closed with no activity
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) }