点击文字 怎么让它一直保持颜色 而不是点击的一瞬间颜色变化?
ringa_lee
After clicking, let the text be in the focus state, and then set the color of the focus state in the state selector.
Just set the color directly in the click event. Just click tv.setTextColor and it will be fine
After clicking, let the text be in the focus state, and then set the color of the focus state in the state selector.
Just set the color directly in the click event. Just click tv.setTextColor and it will be fine