getColor(@ColorRes int id) 过时

Paste_Image.png

getResources().getColor(R.color.color_green)

Paste_Image.png

ContextCompat.getColor(getActivity(),R.color.color_green)

最後編輯於
©著作權歸作者所有,轉載或內容合作請聯系作者

推薦閱讀更多精彩內容

友情链接更多精彩内容