android 6.0上getResources.getColor遭弃用

取代的方法是int color = ContextCompat.getColor(context,R.color.colorId);spa

使用的方式是View.setBackgroundColor(color)
get

相关文章
相关标签/搜索