AigeStudio / WheelPicker

Simple and fantastic wheel view in realistic effect for android.
Apache License 2.0
2.56k stars 519 forks source link

setSelectedItemTextColor ignored for white #87

Open engineers-bojan opened 7 years ago

engineers-bojan commented 7 years ago

When setting the selectedItemColor white is ignored :)

    wheelPicker.setSelectedItemTextColor(getResources().getColor(R.color.white));

getColor returns -1 when parsing "#ffffff" and it is ignored then in the code in WheelPicker.java line 604.

// Judges need to draw different color for current item or not if (mSelectedItemTextColor != -1) {....

Maybe just changing the default -1 to something else or using a bool instead will fix this..

mladenrakonjac commented 7 years ago

Any changes on this?

thirtyyuan commented 6 years ago

same as the issue.