setBackgroundDrawable提示:The method setBackgroundDrawable(Drawable) from the type View is deprecated
来源:互联网 发布:spaltoon2 知乎 编辑:程序博客网 时间:2024/05/29 16:38
http://www.crifan.com/android_the_method_setbackgrounddrawable_drawable_from_the_type_view_is_deprecated/
当出现:
The method setBackgroundDrawable(Drawable) from the type View is deprecated
时,把:
setBackgroundDrawable
换为
setBackgroundResource
即可。
且传入的参数直接是resource的id,无需再去通过ID获得View,更加方便。
0 0
- setBackgroundDrawable提示:The method setBackgroundDrawable(Drawable) from the type View is deprecated
- The method setBackgroundDrawable(Drawable) from the type View is deprecated
- Android中使用setBackgroundDrawable错误提示:The method setBackgroundDrawable(Drawable) from the type View is
- 'setBackgroundDrawable()' is deprecated,setBackgroundDrawable过时
- The method show() from the type Window is deprecated
- The method buildSessionFactory() from the type Configuration is deprecated
- The method assertEquals(double, double) from the type Assert is deprecated
- The method saveErrors(HttpServletRequest,ActionErrors)from the type Action is deprecated
- 获取显示窗口警告 android The method getWidth() from the type Display is deprecated
- Andriod: The method getDrawable(int) from the type Resources is deprecated,一系列问题
- The method setBackground(Drawable) in the type View is not applicable for the arguments (int)
- The method showDialog(int) from the type Activity is deprecated-android旧版dialog不能用的问题
- The type Contacts is deprecated
- The type SmsMessage is deprecated
- The type SmsMessage is deprecated
- The type MultipartEntity is deprecated
- The type ActionBarActivity is deprecated
- The type SmsMessage is deprecated
- YUM 包管理器的使用
- sql查询重复记录、删除重复记录方法大全
- 获取assets,res,内部存储,外部存储
- android ViewPager 实现Gallery 效果和滑动特效
- iOS获取当前时间及前一天或后一天时间
- setBackgroundDrawable提示:The method setBackgroundDrawable(Drawable) from the type View is deprecated
- python 使用sha1加密算法,返回str加密后的字符串
- NPAPI和PPAPI开发
- Gson 转对象
- winodw下的python在命令提示符中的环境变量的设置
- 分布式主键生成策略
- Fault Tolerance(FT)
- iOS 设计模式之装饰模式(Decorator)
- LDAP 协议解析以及环境搭建