Comments (8)
Finally reappear this error..I think I can fix it today
from viewpagerlayoutmanager.
duplicate #25 , This error confuse me either, It seems like it has something to do with the version of RecyclerView
, You may change the version into 26.0.1
. Because I can not reappear this error, So I still not quite sure why it happens.
from viewpagerlayoutmanager.
I found that the error doesnt appear if I add this:
GravitySnapHelper snapHelper = new GravitySnapHelper(Gravity.START);
snapHelper.attachToRecyclerView(mRecyclerView);
from this lib
https://github.com/rubensousa/RecyclerViewSnap
from viewpagerlayoutmanager.
But if I set this, the error appears again
LinearSnapHelper snapHelper = new LinearSnapHelper();
snapHelper.attachToRecyclerView(mRecyclerView);
WTF?
from viewpagerlayoutmanager.
what is your gradle build tools version?
from viewpagerlayoutmanager.
androidBuildToolsVersion = "26.0.2"
androidMinSdkVersion = 19
androidTargetSdkVersion = 23
androidCompileSdkVersion = 25
supportLibVer = '25.4.0'
compileOnly "com.android.support:recyclerview-v7:${supportLibVer }"
My customer doest want to update this versions
from viewpagerlayoutmanager.
Fixed by : 8c4acfa. Try version 2.0.3.
It because LinearLayoutManager
below 26.0.0 did not call ensureLayoutState
before updateLayoutState
in method collectAdjacentPrefetchPositions
. Cause I don't need to prefetch items, so I just simply disable it.
I find that GravitySnapHelper
use api "com.android.support:recyclerview-v7:27.0.2"
in its gradle build file. So maybe when you set it, recyclerview-27.0.2
is the one you use.
from viewpagerlayoutmanager.
Fixed!
from viewpagerlayoutmanager.
Related Issues (20)
- 滑动到指定位置
- ViewPagerLayoutManager.mOrientation覆盖了父类的LinearLayoutManager.mOrientation
- 能实现每个iten的顶部都是水平的吗
- 如何基于CircleLayoutManager实现椭圆圆弧的效果呢 HOT 4
- How to stop auto scrolling? HOT 1
- ScaleLayoutManager第一次滑动的时候会导致recycleview子布局重现排版
- 如何一次只滑动一个item? HOT 2
- AutoPlayRecyclerView
- 显示多个item时 放大的item左右间距 跟其他item左右间距不一样 - ScaleLayoutManager
- 大于3个item时 放大的item左右间距与其他item左右间距不一样 - ScaleLayoutManager HOT 1
- good job!
- when items are only 3 then why it's scrolls and hide until first visible items rich to end
- 滑动到指定位置调用次数过多会卡死
- LeakCanary内存泄漏
- Big performance issue HOT 1
- CircleScaleLayoutManager
- Infinite status unavailable
- 有iOS的??
- 像小说阅读器那种仿真翻页能实现吗
- 使用PageSnapHelper并没有单页滑动
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 viewpagerlayoutmanager.