我是android布局的新手,请告诉我使用嵌套布局而不是使用下面的布局,上面的布局,布局右,布局左属性的组件相对布局时应用程序的性能如何。
例如:
<RelativeLayout>
<scrollView>
<RelativeLayout>
<LinearLayout> Header<LinearLayout>
<TextView/> <TextView/>
<TableLayout>
<TableRow><ImageView/> <TextView> <Spinner><TableRow>
<TableRow><ImageView/> <TextView> <Spinner><TableRow>
<TableRow><ImageView/> <TextView> <Spinner><TableRow>
<TableRow><ImageView/> <TextView> <Spinner><TableRow>
</TableLayout>
<TextView>
<TableLayout>
<TableRow>
<LinearLayout> <ImageView><TextView></LinearLayout>
<EditText>
</TableRow>
<TableRow>
<LinearLayout> <ImageView><TextView></LinearLayout>
<EditText>
</TableRow>
<TableRow>
<TextView>
< Spinner>
</TableRow>
<TableRow><TextView> <Spinner></TableRow>
</TableLayout>
<TableLayouts>---</TableLayout>
<LinearLayout> footer</LinearLayout>
</RelativeLayout>
<ScrollView>
</RelativeLayout>
感谢和问候亚米尼