0
Is it possible to change the same button Imageview A to B, C and so on? In the same onClickListener?
My first attempt, knowing it wouldn’t work, was
mNext.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
escUm.setVisibility(View.INVISIBLE);
escDois.setVisibility(View.VISIBLE);
escDois.setVisibility(View.INVISIBLE);
escTres.setVisibility(View.VISIBLE);
I also tried a Handler to apply a delay from one image to another. Obviously not what I wanted.
handler.postDelayed(new Runnable(){
@Override
public void run() {
escTres.setVisibility(View.VISIBLE);
}
}, 5000); */
Does anyone know how to proceed?
Got it... Man, thank you so much! Before I thought that these 'slides' should be done in new activities until... I will follow your reply. Thanks!
– okhide
But as I said ,be careful because Timer&timertask are independent of the main thread ,it is possible that even the user destroying the application they are running.
– SeventhBit