设置按钮显示特性(setBacgroundDrawable)替换方法
2016-10-11 15:37
471 查看
The method setBackgroundDrawable(Drawable)
from the type View is deprecated
替换法:setBackgroundResource(int
resid)
如:
from the type View is deprecated
替换法:setBackgroundResource(int
resid)
如:
zoomoutBtn.setBackgroundResource(R.drawable.zoomout1);
相关文章推荐
- 设置按钮显示特性(setBacgroundDrawable)替换方法
- 在Windows7的超级任务栏设置“显示桌面”按钮和“3D窗口切换按钮”的方法
- Win10如何设置任务视图按钮显示或不显示有哪些方法
- Q:JButton的setText()方法设置按钮文本,结果按钮上显示的全是"..."
- 鼠标右键显示控制面板按钮设置方法
- android 按钮的设置代码显示使用drawable
- 在IE中显示pdf文档的方法及参数设置
- 设置字段显示格式的方法
- Button按钮多行显示的实现方法
- C#在MDI父窗体菜单中显示子窗体列表的设置方法
- 禁用IE的后退按钮|显示网页已过期|几种语言的实现方法|c#|javascript|html
- cxGrid增加一栏显示checkBox的设置方法
- Button按钮多行显示的实现方法
- ASP页面显示乱码解决方法/ASP设置编码
- Axure RP Pro - 相关问题 - Button按钮部件不支持设置文字以及解决方法
- 一:从实例入手之设置设置颜色交替显示的GridView(方法一)
- Asp.net设置默认按钮的方法总结
- vc中设置256色背景和建立真彩按钮的方法
- 在WORD中设置,每页都显示相同内容的方法。
- 移动公告的实现方法,可设置多条显示