For each Contact, I want to create three checkboxes and a TextView inside an Activity. Is this possible? If so, how? Another stackoverflow answers says No, it’s not possible, but I find that hard to believe…
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t know why it wouldn’t be possible. Since it’s “for each contact” I’d imagine you’d want a
Cursorfrom theContactsContractcontent provider. As such, you will also likely want aListViewif your goal is to display a list of contacts. Given you have a cursor that has the information for your contact, you’d then utilize aCursorAdapterof some kind to map those contacts in the cursor intoListViewitems. Then you’d design yourListViewitem layouts with 3CheckBoxwidgets and aTextViewand populate them appropriately. Doesn’t seem impossible.