getColor(int id)在API版本23时(Android 6.0)已经过时,代替方法为: 同时兼容高、低版本 ContextCompat.getColor(Context context, int id);