'getDrawable(int)' 已经过时了 【解决】

26 阅读1分钟

'getDrawable(int)' 已经过时了 

替代方法

ContextCompat.getDrawable(context, R.drawable.your_drawable)