首页
话题
动态
专家
文章
作者
公告
更多
积分规则
登录 或 注册
首页
话题
动态
专家
文章
作者
公告
积分规则
发表新帖
发表新帖
What is the difference between linear and relative layout?
后端
未结
关注
10
1737
無奈伤痛
2020-12-30 13:48
What is the difference between linear and relative layout?
10条回答
谎友^
(楼主)
2020-12-30 14:23
Linear Layouts
Linear Layouts are great for aligning views in rows and columns.
They are a good way to divide up one place using layout weights that will expand or shrink views depending on the size of the Display.
Relative Layouts
Relative Layouts are great for positioning elements relative to one another.
For example putting B below A or putting C in the lower left hand corner.Check the Screen shoot
Relative layout also make it easy to overlap views. For Example : view A is overlapping view B. Check the Screen-Shoot
0
讨论(0)
查看其它10个回答
发布评论:
提交评论
加载中...
验证码
看不清?
提交回复
热议问题