界面优化
来源:互联网 发布:上海中级职称软件 编辑:程序博客网 时间:2024/05/22 14:52
源自GDD2009-Android
1. Adapter是ListView和数据的中间人
进入可见区,会调用GetView,返回具体数据的视图
2个办法,提高效率,一是使用convertview,二是使用ViewHolder模式
2. 背景图最好事先缩放,删除窗口背景方法
一是getWindow().setBackgroundDrawable(null)
二是使用style
3. 更新有效的区域
invalidate(Rect)
invalidate(int,int,int,int)
4. 视图和布局
一是使用TextView复合drawables
二是使用ViewStub
三是使用RelativeLayout
四是使用自定义视图和布局
5. 内存
不要在敏感路径上创建对象
如onDraw, onLayout, getView, bindView
- 界面优化
- netbeans 界面优化
- WinForm界面优化工具
- moodle界面优化
- wince界面优化配置
- Django优化admin界面
- C# 界面优化
- android界面优化技巧
- 界面布局优化
- NGUI界面Drawcall优化
- android界面优化技巧
- Android界面优化--Fragment
- 前端界面优化
- Unity3d界面优化方法
- Android界面优化3
- 安卓界面优化
- Android界面性能优化
- 客户端界面加载优化
- 断电重启、虚拟机出现提示:This virtual machine appears to be used
- 比尔·盖茨(Bill Gates)
- IIS 安全事件 审核解读
- RedHat Linux 9忘记root密码
- SQl 语句(常见) 新建,删除,修改表结构(转载)
- 界面优化
- 秋天的牢骚
- Lazy Initialization and the DAO pattern with Hibernate and Spring(1)
- IBM AIX 000-107最新考题--Testinside 180元起
- poj 2084
- Ext 向Ext.form.ComboBox()中添加列表的分类
- Lazy Initialization and the DAO pattern with Hibernate and Spring (2)
- 小球称重问题扩展
- Lazy Initialization and the DAO pattern with Hibernate and Spring (3)