LinearLayout weight
2016-05-17 15:13
351 查看
设置weight需要把width设置为0dp,这样可以提高性能
官方文档解释:
To improve the layout efficiency when you specify the weight, you should change the width of the EditText to be zero (0dp). Setting the width to zero improves layout performance because using "wrap_content" as the width requires the system to calculate a width that is ultimately irrelevant because the weight value requires another width calculation to fill the remaining space.
官方文档解释:
To improve the layout efficiency when you specify the weight, you should change the width of the EditText to be zero (0dp). Setting the width to zero improves layout performance because using "wrap_content" as the width requires the system to calculate a width that is ultimately irrelevant because the weight value requires another width calculation to fill the remaining space.
相关文章推荐
- 怎样记住PL/SQL循环语句
- View和ViewGroup的区别
- ubuntu获取root权限
- TCP建立连接与释放连接
- 设计模式:简单工厂模式
- Java enum的用法详解
- cocos2d-x tolua++ 类型转换
- 判断网络是否,gps,wifi是否开启
- mysql锁
- css中的position用法
- base64 加密方法
- 高斯模糊的实现
- android layout_weight无效
- Microsoft.Ace.OleDb.12.0 操作excel
- 浏览器渲染流程
- Android fragment接口通信
- wxy第一篇博客
- Mac下Jenkins+SVN+Xcode构建持续导出环境
- Delphi中@,^,#,$分别表示什么?
- struts.xml中class路径错误报错的问题