The RecyclerView requires a specific architectural pattern pattern called the view holder pattern. Look at how to create the View Holder.
- [Narrator] A RecyclerView requires a more…formal implementation pattern than the ListView,…which is called the ViewHolder pattern.…In many ways, the ViewHolder pattern is very similar…to the ListView implementation.…There is an adaptor that is used to map the data…to the views used by the individual rows,…just like the ListView.…A big difference is the addition of the ViewHolder.…The ViewHolder retains a reference to the row layout…and it is what the adaptor moves between…as the user scrolls.…The ViewHolder also acts as a location…where all the implementation code for a row can reside.…
This pattern enforces separation of concerns.…However it is more complex to implement.…We will need to create such a ViewHolder…for our RecyclerView.…I like to consolidate all my ViewHolders in one place…so I'm going to create a folder called ViewHolders.…In this folder, I'm going to create a new class.…And this class is going to be called ActivityViewHolder.…
I'm going to make the class inherit…from RecyclerView.ViewHolder.…And I'll right-click, fix that.…
- Breaking down a material design layout
- Adding AppCompat
- Adding icons and floating action buttons
- Animating the appearance
- Creating a RecyclerView
- Creating a ViewHolder
- Modifying the adapter
- Adding CardView
- Adding transition animations
- Adding a Snackbar
- Working with CoordinatorLayout
Skill Level Intermediate
F# and Xamarin Development Basicswith Rachel Blasucci56m 43s Intermediate
1. What Is Android Material Design?
2. Implementing Material Design
3. Floating Action Button
View state change animations4m 17s
Next steps1m 40s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.