什么是的LinearLayout,RelativeLayout的,和AbsoluteLayout之间的区别? [英] What are the differences between LinearLayout, RelativeLayout, and AbsoluteLayout?

查看:308
本文介绍了什么是的LinearLayout,RelativeLayout的,和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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆