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 Android Lists and Adapters (2015) Lists with RecyclerViews Custom Adapters and ViewHolder in RecyclerViews

Did anyone have a hard time with the challenges that follow this video?

I am following the video, but I can't even pass the first challenge.

Can anyone help me out?

Thanks!

1 Answer

Kevin Faust
Kevin Faust
15,353 Points

Hey Ja'Nel,

I definetely had a hard time with the concepts and challenges at first. It took me a really long time to start to understand how the RecyclerView worked

But anyways, I'll start you off!

Im going to assume this was the question in the challenge:

The class below is for a RecyclerView adapter. We need to add a view holder! Create a nested class called GameViewHolder. Make it public and have it extend RecyclerView.ViewHolder. Leave the rest blank for now.

public static class GameViewHolder extends RecyclerView.ViewHolder {

  }

All we do is create a static inner class that extends the ViewHolder class as said in the instructions.

You're a Life Saver! Thanks Kavin, Can you Help me with part 1 and 2?

Thanks!