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 trialJohn Weland
42,478 PointsCurious: why not use a recyclerview
I was curious as to why when creating a list of checkboxes for our ingredients list we didn't use a listview or better yet a recyclerview.
1 Answer
Ben Deitch
Treehouse TeacherSo we don't have to create an adapter :)
The main advantage of using a RecyclerView is that we can scroll through a 100 rows and we'll only be using as many Views as fits on the screen (instead of 100). But since recipes rarely have more than ~10 ingredients and pretty much everything fits on the screen, there's not much advantage to using a RecyclerView.
John Weland
42,478 PointsJohn Weland
42,478 PointsAlright I was just curious so I can better understand methodologies and make better decisions in future work.