In an android app I have a layout, and when the user presses a button a different layout is shown (in the same activity). But instead to show the different layout right away, I want to put in a small delay (ca. 0.5 seconds). How to do that best in android?
In python you just do time.sleep(0.5)
but I have seen already dozen of code lines to do the same. How to do this the most simple way as possible?