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

Can it support pulltorefreshLayout #15

Closed
asker517 opened this issue Oct 8, 2015 · 6 comments
Closed

Can it support pulltorefreshLayout #15

asker517 opened this issue Oct 8, 2015 · 6 comments

Comments

@asker517
Copy link

asker517 commented Oct 8, 2015

Well, i run ViewPager + Tabs + ToolBar example .. worked nice .
but all ViewPager content is RecyclerView with a header to hold the position.
I just try to use Android-PullToRefresh or android-Ultra-Pull-To-Refresh ..if add a header to RecyclerView it will effect the refreshLayout position..
However,google support design package appbarlayout support it all well ..just some scrolling tricks..
Can this library will support the widget?

@henrytao-me
Copy link
Owner

Hi @asker517,

Currently, smoot-app-bar-layout supports SwipeRefreshLayout from AppCompat. Checkout this thread #13 and version 0.1.4.

Let's me know if you really want to support other PullToRefresh libraries.

@henrytao-me
Copy link
Owner

You said you run ViewPager + Tabs + ToolBar already. Is it a custom code? If so, would you like to send a PR?

I just release version 0.1.4 yesterday which has major improvements and some sample code for ViewPager but they still need to be tweaked before releasing.

@asker517
Copy link
Author

asker517 commented Oct 8, 2015

@henrytao-me
No,I just run version 0.1.4 ViewPager + Tabs + ToolBar Example 😄

I use other PullToRefresh library because it's easy to custom refreshing layouts and animations ..
maybe just a case ...but help needed ..thanks for your reply rapidly.

@henrytao-me
Copy link
Owner

Sweet. I will take a look at other PullToRefresh libraries. However, checkout getScrollTarget(View target) method in BaseBehavior, if you have any idea to make it widely supports other PullToRefresh, feel free to send a PR. Happy coding.

@henrytao-me
Copy link
Owner

Hi @asker517

v1.0.2 is out. You can try smoothAppBarLayout. setScrollTargetCallback(...)

Let me know if you need more help.

@asker517
Copy link
Author

OK I will try it later . thanks

Hi @asker517 https://github.com/asker517

v1.0.2 is out. You can try smoothAppBarLayout. setScrollTargetCallback(...)
https://github.com/henrytao-me/smooth-app-bar-layout/blob/master/smooth-app-bar-layout%2Fsrc%2Fmain%2Fjava%2Fme%2Fhenrytao%2Fsmoothappbarlayout%2FSmoothAppBarLayout.java#L126

Let me know if you need more help.


Reply to this email directly or view it on GitHub
#15 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants