Comments (11)
is bug on ViewPagerRunnableAdapter?
from smooth-app-bar-layout.
Yes, it is. However, the root cause is from SmoothAppBarLayout.onScrollChanged
. It's tricky to sync header (toolbar + tabLayout) offset when switching between tabs because their scroll offset are different.
SmoothViewPager doesn't have any problem in QuickReturn mode.
SmoothViewPager and SmoothViewPagerRunnable have the same problem because they are in ExitUntilCollapsed mode. For me, it's quite minor but it's good to have an improvement.
If you have any idea, feel free to discuss.
from smooth-app-bar-layout.
Hi. I want to contribute to this library. But it turns out that you have your customize version of RecyclerView which cause some troubles. What is the point of that? IMO multi-layer custom dependencies is not a good practice for open source though. Please consider to put your extension of RecyclerView in this library or even consider to remove them. Using as close to the original one is best for other user to adapt your idea I suppose :D.
from smooth-app-bar-layout.
Can you explain more about the issue of RecyclerView?
I did use custom RecyclerViewAdapter, not RecyclerView. Also, the library itself doesnt depends on RecyclerViewAdapter, just the example has it as dependency.
from smooth-app-bar-layout.
Yes, but it (your custom Adapters) depends on some component of RecyclerView, for example: the LayoutManager. Furthermore, I figure out that the main problem was the proguard script which changes the LinearLayoutManager class name, therefore RecyclerView could not recognize it again. Please take care of proguard script for UI components.
About the idea of your library, the header view approach is not my style always. But i want to take a look again :D.
from smooth-app-bar-layout.
Hi @eneim
I sent another PR for fixing proguard internally. You don't have to specify this library in your proguard file anymore.
If some how Support Design version xxx can fix the laggy issue with non-header approach, we can move back to origin. For now, most of Google Apps (Inbox, Google Play, Google Contact...) are using header approach (I believe).
If you have any idea or found something are interesting, don't hesitate to share here. Thanks a lot!
from smooth-app-bar-layout.
Hi @henrytao-me, I have an idea to solve this bug. When you scroll back to the 1st viewpager which has x offset, the AppbarLayout should come down only at the top of the recycler view (essentially after scrolling back to the 1st entry). Any recommendations of how we could achieve that?
from smooth-app-bar-layout.
Hi @Deepankur-Sadana, the tricky part is calculating totalScrollOffset of RecyclerView which I still don't know what is the best solution.
from smooth-app-bar-layout.
Hi @henrytao-me , no problems I am on it. I will have you know the solution if I am able to deal with it .
I appreciate you for acknowledging the concern.
from smooth-app-bar-layout.
Thanks a lot. Let me know if you find something interesting.
from smooth-app-bar-layout.
Hi @PedroMobile @eneim @Deepankur-Sadana
Check out v1.0.2
. ViewPager now supports exitUntilCollapsed
and quickReturn
too. They are all interesting.
from smooth-app-bar-layout.
Related Issues (20)
- Snap SmoothAppBarLayout HOT 1
- Flexible CollapsingToolbarLayout height in SmoothViewPagerParallaxExitUntilCollapsedActivity HOT 8
- appbarlayout gets dissappeared HOT 3
- Not able to use appbar layout with recycler view HOT 2
- Compatibility issue with api 26 HOT 1
- ViewPager Tablayout title bar quickly sliding to the top or bottom HOT 5
- deprecated after 26.0.0? HOT 9
- why is it deprecated? HOT 1
- Not working with support design 26 HOT 3
- My support:design is 26.+ How to compile it
- error inflating class android.support.design.widget.collapsingtoolbarlayout HOT 1
- RecyclerView setup horizontal, when i scroll RecyclerView to right or left, SmoothAppBarLayout auto scroll
- NestedScrollView problem
- I imitate SmoothViewPagerParallaxExitUntilCollapsedActivity interface, overall structure of this project is viewpager + fragemment structure, but when I RecyclerView exist head when sliding to the top To be placed at the top, now in your control will slide out, what reason be?
- Request: update repo to use latest version of support library
- downscroll in appbarlayout HOT 3
- Scroll getting for recycler list view in nested scroll view in android studio
- appcompat-v7-26.1.0 duplicate value for resource 'attr/tint' with config ''.
- Why deprecated ?
- Moving project from jcenter() to mavenCentral() issues.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smooth-app-bar-layout.