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 Fragments Ingredients and Directions The Ingredients Fragment

Rifqi Fahmi
Rifqi Fahmi
23,164 Points

Why dont we use RecyclerView or listView ?

I just wonder why we didn't create the directions list with recyclerview or listview ? Ben Deitch Thanks hehe :)

1 Answer

Benjamin McKenzie
Benjamin McKenzie
7,455 Points

The check box view object already has the layout shown in the video by default, meaning the box on the left with words on the right. If we were to use a listview or recyclerview, we would have to create a custom listitem layout, as well as adapter which is just more unnecessary work. By simply using a linear layout like in the video, we let android handle things for us.