getDrawable过时的替代方法
来源:互联网 发布:linux系统启动流程简述 编辑:程序博客网 时间:2024/05/22 02:05
当你这个Drawable不受主题影响时
ResourcesCompat.getDrawable(getResources(), R.drawable.name, null);
当你这个Drawable受当前Activity主题的影响时
ContextCompat.getDrawable(getActivity(), R.drawable.name);
当你这个Drawable想使用另外一个主题样式时
ResourcesCompat.getDrawable(getResources(), R.drawable.name, anotherTheme);
链接:http://www.jianshu.com/p/21558fe8b750
阅读全文
0 0
- getDrawable过时的替代方法
- getDrawable过时的替代方法
- getDrawable过时的替代方法
- getDrawable过时的替代方法
- getDrawable过时的替代方法
- getDrawable过时替代方法
- getResources().getDrawable()方法过时的替代方法
- getDrawable,getColor 过时的替代方法
- getDrawable,getColor 过时的替代方法
- getDrawable()方法过时 替代
- getDrawable()方法过时 替代
- Context#getResources().getDrawable()方法过时后的替代方法
- Context#getResources().getDrawable()方法过时后的替代方法
- getResources().getDrawable()方法过时后的替代方法
- 好用的 Android getDrawable过时的替代方法
- Android的getColor,getDrawable过时的替代方法
- [问题解决]Android中getDrawable和getColor过时的替代方法
- getResource().getDrawable() 方法过时替代方法
- SpringData 自动创建表设置配置
- java 高并发
- C语言(Head First C)-5_2:使用多个源文件:共享函数和共享变量
- Spring boot PUT、DELETE 请求无法定位方法及获取参数解决方案
- 2017 Multi-University Training Contest
- getDrawable过时的替代方法
- 台风眼(eye of storm) = 台风中心
- elasticsearch 5.4.0 安装 及elasticsearch-head 插件
- Table control中列隐藏实现方法
- Android之SurfaceView学习(一) 首先我们先来看下官方API对SurfaceView的介绍 SurfaceView的API介绍 Provides a dedicated draw
- 怎么把已有的RSA公私钥转换成PKCS8格式
- 数据结构中各种树(转)
- z-stack编译选项说明
- netty(十)源码分析之ByteBuf