J
J
jestev2016-04-17 13:27:24
Java
jestev, 2016-04-17 13:27:24

How to make a random button layout?

The quiz app has three buttons in an activity wrapped in an array. How to make it so that each time their location changes?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
one pavel, 2016-04-18
@onepavel

you need to change not the position of the buttons, but the information that you bind to the buttons
in java, there are built-in methods that shuffle arrays
www.tutorialspoint.com/java/util/collections_shuff...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question