在重叠的RelativeLayout [英] Overlapping in RelativeLayout

查看:272
本文介绍了在重叠的RelativeLayout的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 RelativeLayout的,其中包含2 linearlayouts,应始终与底部对齐(对于注销的目的。)和顶部的其它启动,并包含2 viewstubs。这两个viewstubs具有不同的高度它们中的任何只有一个将在同一时间可见。

I have one RelativeLayout which contains 2 linearlayouts, one should always be aligned with bottom (for log out purpose.) and the other starts from top and contains 2 viewstubs. These two viewstubs have different heights any only one of them will be visible at same time.

我的问题是,如果我让顶部的LinearLayout对齐顶部和底部的LinearLayout底部对齐,内容重叠如果viewstubs高度较大。

My problem is if I make top linearlayout align top and bottom linearlayout align bottom, contents overlap if viewstubs height is bigger.

我不能让他们的上方和下方的任何仿佛viewstubs高度较小的观点,从边角开始没有。

I can not make them above and below of any as if the viewstubs height is smaller views start not from the corners.

我如何从重叠避免呢?

推荐答案

使用3 LinearLayouts设置中心的布局,因为它是你已经高于/低于完成
并补充说,中心的布局,并将滚动视图
它还是你的问题不解决经过这么只是让我知道:)快乐编码。

Use 3 LinearLayouts set the center layout as it is which you have done above/below and add that centered layout into scroll view after it still your problem do not solve so just let me know :) Happy coding.

这篇关于在重叠的RelativeLayout的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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