About Retailers
A coding example that illustrates downloading a list of retailers from a web service using REST calls. The data is displayed in a RecyclerView. Tapping on a list item page the PageViewer to show the details of the company along with a Google Map of where the retailer is located.
The app displays 10 items at a time. When you scroll towards the bottom, the next 10 items or remaining items will get loaded.
If you disconnect the device from any Internet connection and run the app, you will get a snackbar at the bottom of the app indicating to check your internet connection and try again.
This app was tested on:
LG Nexus 5 running (Android 6.0 - Marshmallow)
Samsung Galaxy Tab Pro 10 (Android 4.4.2 - KitKat)
Huawei Ascend Y300 (Android 4.1.1 - Jelly Bean)
Coding features:
RecyclerView that uses NetworkImageViews for displaying company logos.
Volley for downloading JSON and caching bitmap images
Sqlite db for caching retailer data
Conversion from JSON to POJOs through Gson
PagerView with two fragments (list and details)
CoordinatorLayout for moving toolbar into and out of view with scrolling
Clean separation between UI, business layer and data access layer