Code that accompanies my youtube tutorial series on recycerviews. The app mimics a listview with the option to put the list into a card view. The data is pulled from Reddit's open API parsing their JSON data.
You can check out the tutorial series here https://www.youtube.com/watch?v=8ePqYGMxdSY
Below is the picture of the final app in cardview
Below are two pictures of the app in listview. The second picture shows the progressdialog while loading new content for the endless scroller feature.
As is, the code displays the content similar to a listview. To convert the display to card view format uncomment the designated sections in the list_row xml layout file and the MainFragment file. Below are pictures of what to uncomment.