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

header高度动态切换 #148

Open
jyh149129 opened this issue May 31, 2024 · 1 comment
Open

header高度动态切换 #148

jyh149129 opened this issue May 31, 2024 · 1 comment

Comments

@jyh149129
Copy link

这里想实现一个带广告图片的刷新header,每次下拉刷新完毕前将刷新指示器隐藏并显示广告view2秒钟,然后再关闭刷新头。所以我通过继承framelayout来自定义header,基本实现了需求。但有个问题,如果广告图片的高度比刷新动画大的时候,header会一直保持初始刷新动画的高度,我如何在切换到广告图片显示时,动态切换header高度为广告图片的高度?(我尝试在刷新完成里设置header的高度无效)

@jyh149129
Copy link
Author

@dkzwm

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

1 participant