取代的方法是int color = ContextCompat.getColor(context,R.color.colorId);spa
使用的方式是View.setBackgroundColor(color)get