0

Now adding check boxes to a list is really easy. My question is what if we want to add checkboxes to certain items in the list. Say I have a filesystem and I wanna give a checkbox only to the files but not the folders.

That is the best way to go about this ? Should I add it as a view and set that row's tags.

Any ideas.

THanks in advanced.

1 Answer 1

1

I would add a custom view to the list: The custom view should have a Linear Layout (horizontal) and 2 items: checkbox and textview. If you want to remove the checkbox, change the visibility of the checkbox to GONE on folders (in the getView method of your custom adapter). See here for a similar example: http://appfulcrum.com/?p=351

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.