E
E
eegmak2021-07-11 17:16:12
Android
eegmak, 2021-07-11 17:16:12

How to "shuffle" the elements displayed in the recycleview?

There is an array of class objects, after clicking on the button, a MutableList is created from the original array and unnecessary elements are removed by the filter and published in recycleview, I wanted to make the list appear randomly every time, is there a simple cheat that will allow me to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2021-07-11
@eegmak

Um, shuffle()?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question