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

大佬,有个吸顶的问题,麻烦点进来看一下详细描述 #276

Open
ChrisChing24 opened this issue Jan 9, 2023 · 2 comments

Comments

@ChrisChing24
Copy link

ConsecutiveScrollerLayout嵌套顶部FrameLayout和底部FrameLayout,顶部FrameLayout里面嵌套ConstraintLayout的标题栏,底部FrameLayout设置成吸顶,当底部吸顶的FrameLayout刚刚滑动进入屏幕,顶部的ConstraintLayout标题栏就会被推出屏幕,请问怎么可以设置顶部的ConstraintLayout标题栏也是吸顶,并且可以和底部的吸顶view一起吸顶,谢谢

@donkingliang
Copy link
Owner

吸顶view必须是直接子view。如果你想顶部的标题栏也吸顶。必须放在ConsecutiveScrollerLayout里,不能有其他层级的嵌套。然后再设置常驻吸顶,就可以两个吸顶view一起吸顶了

@ChrisChing24
Copy link
Author

吸顶view必须是直接子view。如果你想顶部的标题栏也吸顶。必须放在ConsecutiveScrollerLayout里,不能有其他层级的嵌套。然后再设置常驻吸顶,就可以两个吸顶view一起吸顶了

但是怎么能设置这个顶部标题栏和同一层级的另外一个view有framelayout的效果呢,margin和space都不行

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