|
@@ -48,11 +48,13 @@ public class HomeRecommendTalentAdapter extends BaseQuickAdapter<RecommendTalent
|
|
|
}
|
|
|
TextView tv_focus = holder.getView(R.id.tv_focus);
|
|
|
|
|
|
- if (data.isFocus) {
|
|
|
- tv_focus.setBackgroundResource(R.drawable.shape_border_f0f0f0_1dp);
|
|
|
- tv_focus.setTextColor(getContext().getResources().getColor(R.color.color_999999));
|
|
|
+ if (data.watch) {
|
|
|
+ tv_focus.setText("已关注");
|
|
|
+ tv_focus.setBackgroundResource(com.cooleshow.base.R.drawable.shape_border_f0f0f0_1dp);
|
|
|
+ tv_focus.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_999999));
|
|
|
} else {
|
|
|
- tv_focus.setBackgroundResource(R.drawable.shape_2dc7aa_12dp);
|
|
|
+ tv_focus.setText("关注");
|
|
|
+ tv_focus.setBackgroundResource(com.cooleshow.base.R.drawable.shape_2dc7aa_12dp);
|
|
|
tv_focus.setTextColor(getContext().getResources().getColor(R.color.white));
|
|
|
}
|
|
|
}
|