J
J
jestev2016-07-24 15:11:14
Android
jestev, 2016-07-24 15:11:14

Is it possible to change the image on an ImageView by clicking on a button?

Is it possible to make it so that when the button is clicked, the image on the ImageView changes? It is desirable that the pictures were from an array (changed in a strict order).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey V., 2016-07-24
@jestev

Can.
imageView.setImageResource(mImageArray[index]);

F
FoxInSox, 2016-07-24
@FoxInSox

Certainly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question