Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Is there a way to expand and show details of recycler view items on click?

Is there a way to expand and show details of recycler view items on click? I have been googling this, and found many different options, but they don't feel like the right way. So I have put those as my last resort. Is there any way to do this, so when I click each item, it shows the detail of it? Thanks, I need a tutorial their​ thanks.

Ben Deitch Ben Jakuben

Ben Deitch
Ben Deitch
Treehouse Teacher

Hey Tegh! Yep, there are many ways to do that. Also, there's not always a clear "best" way to do things. Usually when I'm faced with this kind of issue I go ahead and try each of the options in code, and then go with whichever option I happen to like the most. And if I happen to change my mind later (which happens a lot), then that's fine too; sometimes it just takes actually using an approach to find what you do and don't like about it.

Ben Deitch I am stuck. Is there a way you'd recommend?

Ben Deitch
Ben Deitch
Treehouse Teacher

Nope. I've never implemented this specific interaction, and I'd need to do a bunch of research/testing before feeling confident enough to give a recommendation. Sorry I can't be more helpful :)