I have a string array emails and a string variable Category_name. To get and set the results for Category_name i use this:
holder.category_name.setText(mcategoryset.get(position).getCategory_name());
but for emails which is a string array , i am doing this:
holder.category_emails.setText(mcategoryset.get(position).getEmails().get(0));
i.e. i am getting value of position 0 only. How can i get all the values programatically instead of getting just a single value?
holder.category_emails.setText(TextUtils.join(",",mcategoryset.get(position).getEmails()));