This commit is contained in:
houzh 2023-08-22 12:55:53 +08:00
commit 086d3444bb

View File

@ -88,7 +88,8 @@ NumberPicker::NumberPicker(Context* context,const AttributeSet& atts)
setTextColor(mTextColor,atts.getColor("textColor2",mTextColor)); setTextColor(mTextColor,atts.getColor("textColor2",mTextColor));
setSelectedTextColor(atts.getColor("selectedTextColor")); setSelectedTextColor(atts.getColor("selectedTextColor"));
ColorStateList*colors=mSelectedText->getTextColors(); ColorStateList*colors=mSelectedText->getTextColors();
mTextColor = colors->getColorForState(StateSet::get(StateSet::VIEW_STATE_ENABLED),Color::WHITE); if(colors->isStateful())
setSelectedTextColor(colors->getColorForState(StateSet::get(StateSet::VIEW_STATE_ENABLED),mSelectedTextColor));
updateInputTextView(); updateInputTextView();
setValue(atts.getInt("value",0)); setValue(atts.getInt("value",0));