android 获取颜色 getColor 方法 deprecated 过期

可以使用下面代码代替:

ContextCompat.getColor(getContext(), R.color.post_list_content_color)

需要引入:

compile 'com.android.support:support-v4:23.0.0'
原文地址:https://www.cnblogs.com/agilezhu/p/6197522.html