mardi 3 novembre 2015

How would I change my imageView src with one button but, a few images at random?

i want to make a simple app (in Android studio) that can change the image with one button and every button press a different images goes on top of it at random. i only know how to change one photo with only one button with this code

thatImage.setImageResource(R.drawable.myimage);

but i don't know how to have multiple images ready to replace it when the user presses the button and a random. So if anyone can help me out with this i would appreciate it thank you for the support :)




Aucun commentaire:

Enregistrer un commentaire