The RecyclerView widget is a popular option on the Android platform for efficiently displaying dynamic data collections .Couchbase Lite 2.0 is a powerful NoSQL embedded data store for iOS, Android and .Net Mobile Platforms.
In this post, we introduce a tutorial that will discuss the use of a Couchbase Lite embedded database as a data source for RecyclerView within your Android app.
- Couchbase Lite 2.0 as a data source for RecyclerViews
We will be working with a very simple “University Lister” app.
The app does the following –
- It displays a list of “university” items in a
Couchbase Liteas the data source.
- Every time a “University” entry is added to the Couchbase Lite database, the RecyclerView displaying the university items is automatically updated to include the newly added item
At the end of the tutorial, you should have an understanding of how to use a Couchbase Lite database as a data source for
RecyclerViews within your Android app. You should also gain familiarity with the fundamentals of using Couchbase Lite’s Database / Document interface.
If you have questions or feedback, please leave a comment below or feel free to reach out to me at Twitter @rajagp or email me at email@example.com. The Couchbase Forums are another good place to reach out with questions.