Suppose there is an array of objects that displays content on the screen. They are kept in an array that is normally navigated via a Next and Previous button. Normally, the buttons just add or subtract one to the increment variable depending on whether the next or previous button is pressed.
If the user selects "Random," the counter variable is set to a random number each time the Next button is pressed, so random objects are displayed. Is there an easy way to wire up the Previous button in that situation?
I'm working with Java for an Android App.
Aucun commentaire:
Enregistrer un commentaire