-1

I confuse about printing checked data from multi select spinner to textview, what should i do ?

https://stackoverflow.com/a/38418249/11182330

Fend 0
  • 1

1 Answers1

0

From @Ironman's solution, he maintains an ArrayList of items inside the activity itself, and its values are updated.

You have access to it from within your activity.

ArrayList<StateVO> listVOs = new ArrayList<>();
....
....
....
....

for(StateVo state: listVOs)
    if (state.isSelected())
        Log.d(state.getTitle()); //Will print all of the selected items in your log.

Regarding TextView - I'm not sure why you'd want to do that, it's not very aesthetic. Please explain what is it exactly that you want to do, and I'll edit my answer for you.

Barak
  • 1,390
  • 15
  • 27