12. 布局XML优化
? Java处理效率比XML快得多 $ layoutopt samples/
samples/compound.xml
? UI与逻辑的分离是很重要的
7:23 The root-level
<FrameLayout/> can be replaced
with <merge/>
11:21 This LinearLayout layout or
? Layoutopt its FrameLayout parent is useless
? Layoutopt <list of xml files or directories> samples/simple.xml提示未使用到该布
局
7:7 The root-level
<FrameLayout/> can be replaced
with <merge/>
samples/too_deep.xml
-1:-1 This layout has too many
nested layouts: 13 levels, it should
have <= 10!
? Hierarchy Viewer 层级观察器 20:81 This LinearLayout layout or
? 显示控件的节点的测量(measure)、 its LinearLayout parent is useless
布局(layout)以及画视图(draw)的时间 24:79 This LinearLayout layout or
its LinearLayout parent is useless
Confidential All rights reserved