Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.