Can same adapter be safely shared among different ListViews or GridViews ?
And if so, can two different view be returned from getView() based on who is asking for that view ?
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.
Yes. But why would you want to display the same information twice (once in a ListView and again in a GridView)?
Yes… You could override
getView()and return different Views fromgetItemViewType()based ongetView()‘s parameterViewGroup parent. But if the Views are so different why not use to different adapters?