[Android](http://lib.csdn.net/base/android) SDK
android SDK 升级到 23 之后, getResource.getColor(R.color.color_name) 过时,可以使用新加入的方法 ContextCompat.getColor(context, R.color.color_name) 。
[Android](http://lib.csdn.net/base/android) SDK
android SDK 升级到 23 之后, getResource.getColor(R.color.color_name) 过时,可以使用新加入的方法 ContextCompat.getColor(context, R.color.color_name) 。
本文标题: Android用ContextCompat替换getResou
本文链接:https://www.haomeiwen.com/subject/ivxblxtx.html
网友评论