Skip to content

Demo Android project that populates a recicleview from a REST call.

Notifications You must be signed in to change notification settings

EnricoAncis/RecyclerviewFromREST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Recyclerview from REST

Demo Android project that populates a recicleview from a REST call. The call returns a JSON of post list from http://www.mocky.io/v2/59f2e79c2f0000ae29542931.

Every post has got id, user_id, title, description, image and published date . The app view had a taggle buttom filter, when the toggle is disabled (the default state) all posts should be shown, when it is enabled (after a tap) the list should only show the posts having user_id set to 1 and sorted by descending published_at. Tapping on the button again will return it to its default state.

The project shows a easy data model architeture ad uses a SQLite db to save the post list and optimize the app launching and events that can kill and recreate the activity. The db save the state of the filter too. Every time the user wants to update the posts he can tap in the refresh buttom.

The management of the REST architetture is realized with Restrofit library and Picasso for the images.

About

Demo Android project that populates a recicleview from a REST call.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages