
getResources().getColor(R.color.colorWhite)被弃用,相应替换的方式为:


ContextCompat.getColor(context,颜色值);
getResources().getColor(R.color.colorWhite)被弃用,相应替换的方式为:
ContextCompat.getColor(context,颜色值);
本文标题:Android getResources().getColor(
本文链接:https://www.haomeiwen.com/subject/tjoiottx.html
网友评论