過時 替換

過時方法: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);
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章