Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用相对布局居中视图时出现一个矛盾体~ #99

Closed
szmichael-desgin opened this issue Sep 6, 2019 · 1 comment
Closed

Comments

@szmichael-desgin
Copy link

szmichael-desgin commented Sep 6, 2019

我在项目中遇到这样一个需求,见下图:

MyLayout居中视图矛盾01

效果展示:

MyLayout居中视图矛盾02

MyLayout居中视图矛盾03

MyLayout居中视图矛盾04

留意:黄色背景视图和绿色背景视图。

紫色:UIScrollView
黄色:MyFrameLayout
绿色:线性布局视图

主要问题在于:隐藏和显示子视图后,黄色视图的高度计算存在问题。
默认状态 也有问题,MyFrameLayout 会偏离顶部一定距离,大概 20px。

MyLayout居中视图矛盾05

@youngsoft
Copy link
Owner

您的问题在最新发布的1.9.0beta版本得到修复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants