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

此布局的父布局必须为FrameLayout #1

Open
ilovexy2tom opened this issue Jun 27, 2022 · 1 comment
Open

此布局的父布局必须为FrameLayout #1

ilovexy2tom opened this issue Jun 27, 2022 · 1 comment

Comments

@ilovexy2tom
Copy link

此布局的父布局必须为FrameLayout,如果有使用的朋友出现Y轴偏移的情况,在最外层加一层FrameLayout就行,否则会容易高度计算错误。

@Binary-0001
Copy link

onLayout的时候绘制child top用的是父容器的,所以偏移了,mChildView.layout(l, 0, l + width, 0 + height);

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