Comments (10)
I see it often too...
from staggeredgridview.
Fix:
Replace this constructors:
private SavedState(Parcel in) {
super(in);
firstId = in.readLong();
position = in.readInt();
topOffsets = in.createIntArray();
mapping = new ArrayList<ColMap>();
in.readTypedList(mapping, ColMap.CREATOR);
}
And
private ColMap(Parcel in) {
tempMap = in.createIntArray();
values = new ArrayList<Integer>();
for (int index = 0; index < tempMap.length; index++) {
values.add(tempMap[index]);
}
}
from staggeredgridview.
@q1p Thank you! It works!
from staggeredgridview.
@q1p thank you
from staggeredgridview.
@q1p +1 (happened when android tried to restore the activity)
from staggeredgridview.
It is not works completely. When resume the activity, it works.But if restore the activity, it is not working completely.
I use a FragmentActivvity to setup three StaggeredGridView, it happened when android tried to restore the FragmentActivity, debug info show that the second and third StaggeredGridView.SavedState.topOffsets and mapping is null when Parcelable.writeToParcel.
Is that anybody help?
from staggeredgridview.
@q1p can you package this into a pull request if you still see the problem?
from staggeredgridview.
@briangriffey seems it's already fixed by several of commits.
from staggeredgridview.
Closing this issue then.
from staggeredgridview.
Was there a way to reproduce this error consistently?
from staggeredgridview.
Related Issues (20)
- Staggered Grid View Height issue
- add scrollbar
- Having issue while using custom Typeface, it affects smooth scrolling of StaggeredGridView
- setOnItemLongClickListener not work's :/
- Header, Footer is not supported HOT 1
- notifyDataSetChanged not working HOT 2
- DPad Selection
- Error in StaggeredGridView.java
- Is there any way to display vertical scroll bar?
- ArrayIndexOutOfBoundsException
- SGV.onMeasure() does not recalculate mColumnTops/Bottoms/Lefts when SGV dimension changes HOT 2
- Set listSelector HOT 1
- auto set width and height StaggeredGridView Item
- No SetSelection(int index) method HOT 2
- Cannot show content below staggered gridview HOT 1
- scrollbar
- SwipeRefreshLayout HOT 3
- Missing support for RTL layout
- Is it possible to set a header view crossing columns?
- Error inflating class com.origamilabs.library.views.StaggeredGridView
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 staggeredgridview.