Dev*_*ath 13
LINEAR LAYOUT ::
点击这里---- for --- Android Docs线性布局参考
RELATIVE LAYOUT::
点击这里---- for --- Android Docs参考相对布局
优化 :: 看看优化布局层次结构
更少的观点,更好 ::
The number one goal for your layouts should be using the fewest number of Views possible. The fewer Views you have to work with, the faster your application will run. Excessive nesting of Views further slows down your application.
A RelativeLayout hierarchy will typically use fewer Views and have a flatter tree than a LinearLayout hierarchy. With LinearLayout, you must create a new LinearLayout every time you want to change the orientation of your views – creating additional Views and a more nested hierarchy. As a result, it is recommended that you first use RelativeLayout for any layout that has any complexity. There is a high probability you will reduce the number of Views – and the depth of your View tree – by doing so.
归档时间: |
|
查看次数: |
20353 次 |
最近记录: |