Skip navigation

Handle user events in a RecyclerView

Handle user events in a RecyclerView: Android App Development Essentials: Local Data Storage
Handle user events in a RecyclerView: Android App Development Essentials: Local Data Storage

When the user touches an item in the RecyclerView, you can handle that event by adding a bit of code in one of the component’s methods. RecyclerView supports the most common events you might want to handle, such as click and long-click events. When using the older ListView, you put your event handing code in the activity or fragment that "owns" the list. With RecyclerView, that code goes in the adapter that manages the visual presentation.

Resume Transcript Auto-Scroll
Skill Level Intermediate
3h 9m
Duration
50,195
Views
Show More Show Less

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now