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

如何让头部固定?而不是下拉显示上拉隐藏? #22

Open
chuwe1 opened this issue Sep 12, 2017 · 13 comments
Open

如何让头部固定?而不是下拉显示上拉隐藏? #22

chuwe1 opened this issue Sep 12, 2017 · 13 comments

Comments

@chuwe1
Copy link

chuwe1 commented Sep 12, 2017

No description provided.

@BroganGrow
Copy link

头部固定那就简单了,根本不需要这个,头部写死,然后滚动指示器+Fragment就行

@chuwe1
Copy link
Author

chuwe1 commented Sep 12, 2017

我现在的需求是 1:头部、tab一起滚出屏幕
2:头部固定、tab滚进去(滚到头部后面)
3:头部滚出去、tab固定在顶部

@BroganGrow
Copy link

额,需求这么多,那你就只能自己自定义了

@chuwe1
Copy link
Author

chuwe1 commented Sep 12, 2017

老铁 可能破?

@BroganGrow
Copy link

你同一个页面就要这3个需求?

@chuwe1
Copy link
Author

chuwe1 commented Sep 12, 2017

对的 老板 太恶心了

@BroganGrow
Copy link

它这个貌似只滑出第一viewgroup,你在这里考虑下吧

@chuwe1
Copy link
Author

chuwe1 commented Sep 12, 2017

他这个是 通过 到顶在往上滑 就 调用scrollBy 来滑整体的 关键是 我的需求是 要的是 只花中间的tab,上面的header还要固定,很恶心 这招行不通了

@BroganGrow
Copy link

你这个有2个tab?嵌套了么

@chuwe1
Copy link
Author

chuwe1 commented Sep 12, 2017

就一个tab ,一个是头部 头部固定的时候 要滑中间的tab

@BroganGrow
Copy link

tab滑出去还怎么用啊,好奇葩的想法

@BroganGrow
Copy link

CoordinatorLayout可能能实现,你看看

@chuwe1
Copy link
Author

chuwe1 commented Sep 14, 2017

早试过了 第二种 做不到

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