android 6.0上getResources.getColor遭棄用

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

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

相關文章
相關標籤/搜索