作者热门文章
- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
具有复杂的布局层次结构是否(以及以何种方式)影响性能?
它以何种方式影响具有深层嵌套布局的应用程序(例如,RealitiveLayout 包含许多 LinearLayouts,每个 LinearLayouts 包含....)
最佳答案
它有一个作用,规则越简单越好。
Every view — or worse, every layout manager — that you add to your application comes at a cost: initialization, layout and drawing become slower. The layout pass can be especially expensive when you nest several LinearLayout that use the weight parameter, which requires the child to be measured twice.
发件人:http://android-developers.blogspot.com/2009/02/android-layout-tricks-1.html
关于android - Android Layout层级的效率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8672647/
我正在处理这个线程:HierarchyID:HierarchyID: Get all descendants for a list of parents 我有一个使用 HierarchyID 的表,我
我是一名优秀的程序员,十分优秀!