|
|
@@ -1660,6 +1660,20 @@ public class ViewUtil {
|
|
|
default:
|
|
|
|
|
|
break;
|
|
|
+ case 1:
|
|
|
+ textView.setVisibility(View.VISIBLE);
|
|
|
+ textView.setBackgroundResource(R.drawable.shape_red_stroke_rectangle_no_lb);
|
|
|
+ textView.setTextColor(context.getResources().getColor(R.color.red_FD2D54));
|
|
|
+ textView.setText("热门");
|
|
|
+ textView.setPadding(padding2, padding1, padding2, padding1);
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ textView.setVisibility(View.VISIBLE);
|
|
|
+ textView.setBackgroundResource(R.drawable.shape_red_stroke_rectangle_no_lb);
|
|
|
+ textView.setTextColor(context.getResources().getColor(R.color.red_FD2D54));
|
|
|
+ textView.setText("最新");
|
|
|
+ textView.setPadding(padding2, padding1, padding2, padding1);
|
|
|
+ break;
|
|
|
case 3:
|
|
|
textView.setVisibility(View.VISIBLE);
|
|
|
textView.setBackgroundResource(R.drawable.shape_red_stroke_rectangle_no_lb);
|
|
|
@@ -1669,11 +1683,18 @@ public class ViewUtil {
|
|
|
break;
|
|
|
case 4:
|
|
|
textView.setVisibility(View.VISIBLE);
|
|
|
- textView.setBackgroundResource(R.drawable.shape_red_f07422_stroke_retangle_no_lb);
|
|
|
+ textView.setBackgroundResource(R.drawable.shape_f07422_stroke_retangle_no_lb);
|
|
|
textView.setTextColor(context.getResources().getColor(R.color.red_F07422));
|
|
|
textView.setText("活跃");
|
|
|
textView.setPadding(padding2, padding1, padding2, padding1);
|
|
|
break;
|
|
|
+ case 5:
|
|
|
+ textView.setVisibility(View.VISIBLE);
|
|
|
+ textView.setBackgroundResource(R.drawable.shape_f07422_stroke_retangle_no_lb);
|
|
|
+ textView.setTextColor(context.getResources().getColor(R.color.red_F07422));
|
|
|
+ textView.setText("福利");
|
|
|
+ textView.setPadding(padding2, padding1, padding2, padding1);
|
|
|
+ break;
|
|
|
}
|
|
|
|
|
|
}
|