getResources().getColor(android.R.color.white)过时了
以下方法替换

getResources().getColor(android.R.color.white, getActivity().getTheme()));

ContextCompat.getColor(context, R.color.color_name)