henrytao-me / smooth-app-bar-layout

Smooth version of Google Support Design AppBarLayout
Apache License 2.0
1.77k stars 241 forks source link

Can it support pulltorefreshLayout #15

Closed asker517 closed 8 years ago

asker517 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

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 commented 8 years ago

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 commented 8 years ago

Hi @asker517

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

Let me know if you need more help.

asker517 commented 8 years ago

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 https://github.com/henrytao-me/smooth-app-bar-layout/issues/15#issuecomment-183582322 .