How to insert a sleep/pause before the next method is called in android? : <p>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?</p>

<p>In python you just do <code>time.sleep(0.5)</code> but I have seen already dozen of code lines to do the same. How to do this the <em>most simple way as possible</em>?</p>
