Comments (3)
The idea is to let RecyclerView
signals you when you need to load data.
We first make a network call to v0/topstories.json
to fetch all the IDs and create an array of items with no data and set it as data source for RecyclerView.Adapter
.
Whenever RecyclerView
needs to display an item it will trigger RecyclerView.Adapter.bindViewHolder()
, at which point you make another network call to v0/item.json
to fetch the item (if not yet), or bind from previously fetched item. You'll need to write logic to decide whether to fetch an item again.
from materialistic.
OK , thank you . I read the code again and understand it.
from materialistic.
Ok so I will close this issue.
from materialistic.
Related Issues (20)
- If the list is fully new the app crashes on refresh
- The bug reporter from the feedback page doesn't work
- Comments not loading HOT 1
- Customise Dark Mode
- Searching and sorting by popularity is broken?
- Is app removed from Play Store? HOT 6
- Could someone provide the latest apk? HOT 4
- Saved stories "location"/storage? HOT 1
- crash and exit but cannot reproduce
- Add Option to Search By Time Frame
- Rotating the screen before selecting "zoom in or zoom out" causes a crash HOT 2
- App is not listed in google play HOT 7
- Please add an option to save a link to a comment
- Cannot authenticate / login anymore
- Twitter redirect to nitter
- Got a NullPointerException and crashed
- Occasionally crashed when scrolling to update
- Prompted to login when commenting, but it won't submit.
- Successfully login with a Username with an extra blank but fail to merge the same accout and update the profile
- IP Block in Africa
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 materialistic.