過時方法:setBackgroundColor(getResources().getColor())
setBackgroundColor(getResources().getColor(R.color.contact_letter_idx_bg));
替換方法
setBackgroundColor(ContextCompat.getColor(getContext(),R.color.contact_letter_idx_bg));
過時方法:paramContext.getResources().getDrawable
hintDrawable=
paramContext.getResources().getDrawable(R.drawable.hit_point);
替換方法:
hintDrawable=
ContextCompat.getDrawable(paramContext,R.drawable.hit_point);