I have an activity with a button and 2 ImageView
, I am looking for a way that when pressing the button an image is loaded in one ImageView
and a second later another image is loaded in the other ImageView
.
I have an activity with a button and 2 ImageView
, I am looking for a way that when pressing the button an image is loaded in one ImageView
and a second later another image is loaded in the other ImageView
.
You can achieve this through a Handler , your button would call the method
cargaImagenes()
, which inside contains methods to load the 2 images, sequentially with an interval of 1 second.Through a handler you can call the execution of a method after n seconds