Comments (8)
@eyecreate - Thanks for the report. The SuperSLiM integration was a tricky so it's quite possible there are some bugs in regards the rows not updating properly.
Could you provide some more details how you got into this state?
- Add items?
- Remove items?
Or is this the initial rendering?
from realm-recyclerview.
This is the initial render and what it looks like after these items are added and then navigating to this fragment. Fresh instances of the fragment yield the same mistake at this point.
from realm-recyclerview.
Any way you could make the dataset available so that I could investigate it / have a repro case?
from realm-recyclerview.
Here is a link to the Realm DB I was using.
https://cloud.eyecreate.org/index.php/s/bbJyINi94sRYdPl
Let me know if you need anything else.
from realm-recyclerview.
@eyecreate - thanks for the realm file. The realm data looks okay but I would have to actually see your setup code to know which columns you picked and to repro re-create all the models / adapter.
Since it would take me a bit to recreate all the models and your recyclerView setup / adapter code, I was wondering if you could share you models as well as the recycler view setup code and your adapter implementing via a gist. You could just copy all the classes into one gist. That would help me a lot.
from realm-recyclerview.
This should be what is needed to recreate the page as above.
https://gist.github.com/eyecreate/deb1835ef58e4708f2ba
from realm-recyclerview.
Aright. Tracked the bug down.
onBindRealmViewHolder
with headers was passed the position but this was not the realmIndex but the rowWrapperIndex. This caused the wrong items to be displayed.
The linearLayoutWithHeaders example had:
final CountryModel quoteModel = realmResults.get(rowWrappers.get(position).realmIndex);
instead of
final CountryModel quoteModel = realmResults.get(position);
and thus was covering up this bug. In your example you used the later line. I fixed up the library to provide the correct position so that your code should work correctly now once you upgrade to 0.9.7.
@eyecreate - Please verify that it works for you as well and close the issue.
from realm-recyclerview.
The update seems to have fixed this. Labels now seem to properly match the content.
from realm-recyclerview.
Related Issues (20)
- Is it possible to animate RealmRecycleView when i change sort directional?
- example app ArrayIndexOutOfBoundsException: rowIndex > available rows: 2 > 2
- Realm recycler view not refreshing on first insert HOT 1
- How to Make Recycler View show rows from bottom HOT 1
- java.lang.NullPointerException null object reference in Fragment
- Can I group by any field? HOT 1
- Please update to Realm Java 3.0.0
- Can't create a RealmRecycleView Programmatically
- Realm Recyclerview not working with Realm 3.5.0 HOT 1
- Error:(39, 14) Failed to resolve: com.github.thorbenprimke:realm-recyclerview:0.9.25 HOT 1
- Doesn't work with android studio 3.0
- How can we get the LayoutManager? HOT 2
- Enable swipe to delete only in one direction?
- Need to draw background with an icon when the user swipes an item
- Fatal signal 11 while deleting object from Realm
- How to scroll to position not softly?
- how to fire loadmore after fetching and showing every 100 records from realm HOT 1
- Issues When Having Multiple View Types HOT 1
- Attempting to use Realm-recyclerview with Object Server.... HOT 4
- Size APK HOT 1
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 realm-recyclerview.