Friday 11 July 2014

Using RecyclerView and CardView in Eclipse ADT

Hello!

In my recent attempts to integrate a RecyclerView and CardView into an application, I ran into a few technical snags which caused the application to keep crashing. After a quick google search, it became quickly obvious that this was a problem faced by a lot of people and, furthermore, most solutions provided a method for users of Android Studio and nothing for Eclispe ADT users like myself. After some more digging around I found a post on stack exchange which helped resolve my issue. However, it took some tinkering around before I could get my head around what the post asked me to do. So this is my attempt to create an idiot proof guide to help newcomers to the field of Android Development like myself to create and use the RecyclerView and CardView features.

The RecyclerView and CardView packages are part of the Android L Developer Preview version of Android. However, with the  use of compatibility support libraries, we can include these features in older versions as well. Here's how:

Step 1: Download and install the Android Support Libraries using the SDK manager.