取代的方法是int color = ContextCompat.getColor(context,R.color.colorId);
使用的方式是View.setBackgroundColor(color)
本文共 151 字,大约阅读时间需要 1 分钟。
取代的方法是int color = ContextCompat.getColor(context,R.color.colorId);
使用的方式是View.setBackgroundColor(color)
转载于:https://my.oschina.net/u/990728/blog/601516