参考链接:http://www.jianshu.com/p/e22d9dd93d4a
Android中的方法getResources().getDrawable() 在 API 22 废弃。
可使用下列方法进行代替:
ResourcesCompat.getDrawable(getResources(), R.drawable.name, null);
Android中的方法getResources().getDrawable() 在 API 22 废弃。
可使用下列方法进行代替:
ResourcesCompat.getDrawable(getResources(), R.drawable.name, null);
本文介绍在Android API22中getDrawable()被废弃后的替代方案。推荐使用ResourcesCompat.getDrawable()以保持代码兼容性和可维护性。
2637

被折叠的 条评论
为什么被折叠?



