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

Checkboxes with Custom ListView on Android

I've searched a ton, but can only find partial answers. Does anyone have some good sample code or links for creating a custom listview with checkboxes in Android? I need to be able to save or delete the checked items to a database. Thanks!

1 Answer

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

We cover this in the Self-Destructing Message app, but I don't know if it's exactly what you need. You may need to piece it together from separate videos. We set up a ListView with checkboxes in the Relating Users stage where we check and uncheck friends from a list of users. We then talk about creating custom list layouts later in the project.