New Course: Beginning RecyclerView

Create a basic RecyclerView, then learn how to add ItemDecorations, animations, multiple view types, drag and drop, and swipe-to-delete. By Joe Howard.

Leave a rating/review
Save for later
Share

It’s day 5 of the Android Avalanche: an event where we’ll be releasing new Android and Kotlin books, courses, and screencasts every day!

Today, we are releasing a brand new course: Beginning RecyclerView.

In this 37-video course by Joe Howard, you’ll learn how to use Android’s RecyclerView to efficiently display a list of items. Through a series of hands-on exercises and challenges, you’ll set up a basic RecyclerView, learn to use different layout managers, add animation, and more. Take a look at what’s inside:

Part 1: RecyclerView Basics

In part one, learn to bind model data to RecyclerViews.

Introduction: Find out what’s covered in our RecyclerView video tutorial series, from basic setup to animations and common interactions.

The Starter App: Download the starter app and build it in Android Studio, and take a peek at the included starter layout files.

A Basic RecyclerView: See how to setup a basic RecyclerView, along with the corresponding LayoutManager, Adapter, and ViewHolder.

Binding the Views: Learn how to connect the model data displayed in the RecyclerView to the corresponding objects in the view layer.

Challenge: RecyclerView: Practice what you’ve learned so far to add more data into the rows of the RecyclerView, and then see a solution.

Responding to Clicks: See how to respond to clicks on the rows of the RecyclerView, and take the user to a detail screen for the corresponding row item.

Challenge: Favorites: Take all the basics of RecyclerView that you’ve learned so far to build a Favorites screen for the sample app.

Conclusion: Let’s review what you’ve covered in this first part on RecyclerView basics, and discuss what’s next.

Part 2: Layout Managers

In part two, learn to use the various RecyclerView layout managers: LinearLayoutManager, GridLayoutManager, and StaggeredGridLayoutManager.

Introduction: Let’s take a quick look at the layout managers that you’ll learn about in this part, and describe the capabilities of each.

LinearLayoutManager: Learn more detail about LinearLayoutManager by creating a horizontal RecyclerView on the detail screen.

Nested RecyclerViews: Create a nested RecyclerView, learn about LinearSnapHelper, and improve performance with a RecycledViewPool.

GridLayoutManager: See how to create a grid of items with RecyclerView using GridLayoutManager, replacing the need for GridView.

Custom Span Size: See how to use varying span sizes within a RecyclerView managed by GridLayoutManager using a span size lookup.

Challenge: Span Size: Practice setting custom span sizes on a RecyclerView managed by GridLayoutManager, then see a solution.

StaggeredGridLayoutManager: Learn how to handle the case of grid items having different natural sizes using StaggeredGridLayoutManager.

Switching Between Span Sizes: Add a menu to allow switching between span sizes for a RecyclerView managed by a StaggeredGridLayoutManager.

Challenge: Layout Managers: Practice what you’ve learned about layout manager to create a grid of items on the detail screen, then see a solution.

Conclusion: Let’s review what you learned about the various RecyclerView layout managers, and discuss what’s next.

Part 3: Decorating and Animating

In part three, learn how to use item decorations for spacing and separators and add animation.

Introduction: Learn about the objectives of this part, which are to become familiar with the capabilities of ItemDecoration and to see how to animate items in a RecyclerView.

ItemDecoration: Offsets: See how to use ItemDecoration with a RecyclerView to control the spacing around the items utilizing offsets.

ItemDecoration: Drawing: See how to use ItemDecoration with a RecyclerView to create separators between the elements in a list.

Challenge: ItemDecoration: Practice using ItemDecoration with a RecyclerView to create separators between the items in a grid, then see a solution.

Item Animations: Discover how to use animations to add dynamic effects to the presentation of the items in a RecyclerView.

Challenge: Item Animations: Practice using animations to add dynamic effects to the presentation of the items in a RecyclerView.

Conclusion: Let’s review what you learned about using ItemDecoration and animations with a RecyclerView, and discuss what’s next.

Part 4: Section Headers and View Types

In part four, learn about the different view types in a RecyclerView .

Introduction: Learn about the objectives of this part, which are to become familiar with using different view types in a RecyclerView.

Custom Section Headers: See how to sort the items displayed in a RecyclerView into groups and then add section headers to the groups.

Multiple View Types: Use view types to customize the display of items displayed in a RecyclerView, based on the type of the item.

Challenge: View Types: Practice using view types to customize the display of certain items in a RecyclerView, then see a solution.

Conclusion: Let’s review what you learned about using view types for items displayed in a RecyclerView, and discuss what’s next.

Part 5: Common Interactions

In the final part, learn how to handle different interactions with a RecyclerView.

Introduction: Learn about the objectives of this part, which are to become familiar with common interactions with a RecyclerView, such as drag and drop and swipe-to-delete.

ItemTouchHelper: Discover the capabilities and use cases for combining the ItemTouchHelper class with a RecyclerView.

Rearranging Rows: See how to use ItemTouchHelper to create a basic capability to rearrange the items in a RecyclerView.

Handles and Selection: See how to setup drag handles and item selection highlighting using ItemTouchHelper with a RecyclerView.

Challenge: ItemTouchHelper: Practice using ItemTouchHelper to allow for drag and drop rearrangement of the items displayed in a grid via a RecyclerView

Swipe to Delete: See how to use ItemTouchHelper to add a basic swipe-to-delete capability for the items in a RecyclerView.

Conclusion: In this final episode, we’ll summarize the course, and then see an overview of RecyclerView topics that were not covered.

The Android Avalanche Bundle

If you like this course, from now until March 30th you can get it along with the rest of our new Android and Kotlin books, courses, and screencasts — at a big discount!

Our new Android Avalanche Bundle includes:

  • Android Apprentice ($54.99 value): Gives you access to our new Android Apprentice book, which teaches you how to build four complete Android apps from scratch. PDF/ePub format.
  • Kotlin Apprentice ($54.99 value): Gives you access to our new Kotlin Apprentice book, which gives you a deep dive into the Kotlin programming language itself. PDF/ePub format.
  • A raywenderlich.com subscription ($19.99 value): Gives you access to all 8 of our new Android video courses, our 2 new Android screencasts, and access to any new courses and screencasts we release in the future.

The bundle price of $99.99 includes the first month of your subscription, which will continue at $19.99/month thereafter. You can cancel at any time and keep the books. This bundle gives you more than 20% off everything in the Android Avalanche!

The Android Avalanche bundle is only available for the next two weeks, so be sure to order your copy while you can.

Already a subscriber? As a subscriber, you already have access to this new course as part of your subscription. You can also enjoy a $20 discount on the bundle that will get you both books added to your collection. It’s our way of thanking you for supporting what we do here at raywenderlich.com.

Contributors

Over 300 content creators. Join our team.