什么是的LinearLayout,RelativeLayout的,和AbsoluteLayout之间的区别? [英] What are the differences between LinearLayout, RelativeLayout, and AbsoluteLayout?
问题描述
我感到困惑的LinearLayout,RelativeLayout的,和AbsoluteLayout之间的差异。 可能有人请告诉我他们之间的精确区别是什么?
I am confused about the difference between LinearLayout, RelativeLayout, and AbsoluteLayout. Could someone please tell me the exact differences between them?
推荐答案
的LinearLayout
意味着你可以对齐的观点一一(垂直/水平)。
LinearLayout
means you can align views one by one (vertically/ horizontally).
RelativeLayout的
手段基础上,从它的父母和其他观点意见的关系。
RelativeLayout
means based on relation of views from its parents and other views.
的WebView
加载HTML,静态或动态网页。
WebView
to load html, static or dynamic pages.
的FrameLayout
加载孩子一个在另一个之上,就像在一个框架卡,我们可以把一个在另一个之上或框架内的任何地方。
FrameLayout
to load child one above another, like cards inside a frame, we can place one above another or anywhere inside the frame.
pcated 德$ P $ - AbsoluteLayout
意味着你必须给那里的景色应该是准确的位置
deprecated - AbsoluteLayout
means you have to give exact position where the view should be.
有关详细信息,请查询该地址的http://开发商。 android.com/guide/topics/ui/layout-objects.html
For more information, please check this address http://developer.android.com/guide/topics/ui/layout-objects.html
这篇关于什么是的LinearLayout,RelativeLayout的,和AbsoluteLayout之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!