getResources().getDrawable方法的废弃

参考链接:http://www.jianshu.com/p/e22d9dd93d4a

Android中的方法getResources().getDrawable() 在 API 22 废弃。

可使用下列方法进行代替:
ResourcesCompat.getDrawable(getResources(), R.drawable.name, null);

猜你喜欢

转载自l540151663.iteye.com/blog/2344143