This is part of the "Android User Interfaces" learning path. View Path

Beginning RecyclerView

Aug 13 2020 · Video Course (3 hrs, 26 mins) · Beginner

Learn how to create lists in Android using the RecyclerView. Dive into RecyclerView components such as adapters and view holders, and leverage them to produce rich user interfaces as well as provide behavior that your users will expect.

4.7/5 3 Ratings

Version

  • Kotlin 1.3, Android 10, Android Studio 3.5.3

RecyclerView Basics

Introduction

4:13 Free

Learn about the RecyclerView, from basic setup to animations and common interactions.

1

Download the starter app and build it in Android Studio, then take a peek at the included starter layout files.

2

Get started creating a RecyclerView by importing the dependency and then incorporating it into your layout.

3

Connect your data source with an adapter, display content with a ViewHolder and organize the content with a LayoutManager.

4

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

5

Challenge time! Practice what you've learned so far by adding more data into the rows of the RecyclerView.

6

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.

7

Take all the basics of the RecyclerView you've learned so far and build a Favorites screen for the sample app.

8

Conclusion

1:03

Review what you've learned about RecyclerView basics, and find out what's up next.

9

Use Different Layouts

Take a quick look at the layout managers this part covers, along with the capabilities of each.

10

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

11

Create a nested RecyclerView, learn about the LinearSnapHelper, and improve performance with a RecycledViewPool.

12

See how to create a grid of items with a RecyclerView using a GridLayoutManager.

13

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

14

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

15

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

16

Add a menu to allow switching between span sizes for a RecyclerView managed by a Staggered Grid Layout Manager.

17

Practice what you've learned about layout managers by creating a grid of items on the detail screen.

18

Conclusion

1:07

Review what you learned about the various RecyclerView layout managers, and find out what's next.

19

Decorate and Animate RecyclerViews

In this part, you'll learn the capabilities of ItemDecoration and how to animate items in a RecyclerView.

20

Use ItemDecoration with a RecyclerView to control the spacing around the items utilizing offsets.

21

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

22

Practice using ItemDecoration with a RecyclerView to create separators between the items in a grid.

23

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

24

Practice using animations to add dynamic effects to the presentation of the items in a RecyclerView.

25

Conclusion

0:40

Review what you learned about using ItemDecoration and animations with a RecyclerView, and discover what's next.

26

Section Headers and View Types

In this part, you'll learn about using different view types in a RecyclerView.

27

Sort the items displayed in a RecyclerView into groups, then add section headers to the groups.

28

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

29

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

30

Conclusion

0:36

Review what you learned about using view types for items displayed in a RecyclerView, and discuss what's next.

31

Common Interactions

Learn about the common interactions with a RecyclerView, such as drag and drop and swipe-to-delete.

32

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

33

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

34

Set up drag handles and item selection highlighting using ItemTouchHelper with a RecyclerView.

35

Use ItemTouchHelper to create a basic capability to rearrange the items in a RecyclerView.

36

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

37

Learn how to implement multi-select by using the RecyclerView selection library.

38

Conclusion

2:43

Congrats on finishing the course! Learn what RecyclerView topics weren't covered, and where to go from here.

39

Who is this for?

New Android developers who are looking to improve their Android development skills. This course is also suited for advanced developers looking to learn more about the RecyclerView and what can be achieved while using it.

Covered concepts

  • RecyclerViews
  • Adapters
  • View Holders
  • Different Layouts
  • Decoration Drawing
  • Item Animations
  • Section Headers
  • Multiple View Types
  • Rearranging Rows
  • Swipe to Delete
  • Multiple Selection

Contributors

Comments