Shuffling an Adapter [duplicate]
问题 This question already has answers here : Random shuffling of an array (29 answers) Closed 7 years ago . I am using an Adapter : final ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, android.R.id.text1); and I want to shuffle the contents of it, however I discovered that Collections.shuffle(adapter); does not work. Is there another method to do this? While keeping the format of adapter i.e. not changing it to a List 回答1: Of course Collections