- 动态改变Background
((ViewHolder) holder).mSeatNum.setBackgroundResource(R.drawable.bg_selected_seat);
- 动态改变TextColor
((ViewHolder) holder).mSeatNum.setTextColor(Color.rgb(0,0,0));
((ViewHolder) holder).mSeatNum.setBackgroundResource(R.drawable.bg_selected_seat);
((ViewHolder) holder).mSeatNum.setTextColor(Color.rgb(0,0,0));
本文标题:动态改变TextView属性
本文链接:https://www.haomeiwen.com/subject/vikoyxtx.html
网友评论