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

NestedScrollView中嵌套的ScrollView高度会占满一屏 且无法调整 #37

Open
justb opened this issue Jun 13, 2024 · 6 comments
Open

Comments

@justb
Copy link

justb commented Jun 13, 2024

891718249364_ pic

@listenzz
Copy link
Collaborator

可以在 ScrollVeiw 外面套一个 View,就可以调整 ScrollView 的高度了

@justb
Copy link
Author

justb commented Jun 13, 2024

使用NestedScrollView 这种写法也无效了
image

@listenzz
Copy link
Collaborator

你想干啥

@justb
Copy link
Author

justb commented Jun 18, 2024

是想让scrollView下面不留白 如截图所示

@listenzz
Copy link
Collaborator

ScrollVeiw 是一定会占满整个 NestedScrollView 的,不管你怎么调。可以考虑调整 NestedScrollview 的高度。通过测量 ScrollView 的 contentSize 来调整。

@justb
Copy link
Author

justb commented Jun 18, 2024

好方法,专业,想问下为啥会占满呢

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