关于BitmapDrawable()和getColor()被代替
来源:互联网 发布:淘宝特步运动服 编辑:程序博客网 时间:2024/05/16 05:48
下图可以看到BitmapDrawable()和getColor()已经被弃用,作为有强迫症的程序员是不喜欢这样的,以下就给出大家的解决办法:
可以改成:
getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
可以改成:
adapter.setTextColor(ContextCompat.getColor(context,R.color.blue));
阅读全文
0 0
- 关于BitmapDrawable()和getColor()被代替
- 关于bitmap和bitmapdrawable之间的转换
- 关于Drawable和BitmapDrawable得到的图片大小问题
- GetColor
- BitmapDrawable
- BitmapDrawable
- BitmapDrawable和Bitmap 详解和 BitmapDrawable和Bitmap
- getDrawable()和getColor()过时的解决办法
- 过时的getResources().getColor,和getResources().getDrawable
- Bitmap XML和BitmapDrawable应用实例
- Android Bitmap 和 BitmapDrawable的区别
- BitmapDrawable和Bitmap.XML的使用
- 详解Bitmap使用,以及BitmapDrawable和BitmapFactory
- getResources().getColor(R.color.color_name) is deprecated和drawableTop
- [问题解决]Android中getDrawable和getColor过时的替代方法
- linux 关于减号 - 代替stdin 和stdout 的用法
- 关于指针代替数组
- Android Drawable Resource学习(二)、BitmapDrawable和Bitmap
- 工具(四):Java压缩解压缩工具类
- oracle中的 where 1=1 和where 1<>1
- Android 启动模式之三 singleTask
- Spring Security(12)——Remember-Me功能
- 死锁的产生以及避免原理和算法
- 关于BitmapDrawable()和getColor()被代替
- Java类中加载Spring中的ApplicationContext.xml文件的方式
- to be or not to be, that is a question...
- VBA练习——逐行读取csv文件
- ajax json
- [TypeScript语法2]basicTypes
- Java Socket实现一个简单的多线程回显服务器。
- sar
- 查出来的列表添加序号