Maybe someone can tell me what I'm doing wrong I'm writing an Android app that will show 3 views separates by a time interval so the basic idea is;
ViewOne.setVisibility(View.INVISIBLE); //This is redundant but I put here for clarity
ViewTwo.setVisibility(View.INVISIBLE);
ViewThree.setVisibility(View.INVISIBLE);
ViewOne.setVisibility(View.VISIBLE);
//This supposed to make a 1 second stop.
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
ViewTwo.setVisibility(View.VISIBLE);
//This supposed to make another 1 second stop.
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
ViewThree.setVisibility(View.VISIBLE);
but instead of making individual stops of 1000 milliseconds the activity is waiting 2000 to start and then show all the views at the same time. I'm new in android and java development guys sorry if I'm doing a stupid thing. Thanks in advance to all of you.