title: Android - Thread.sleep and Handler.postDelayed() freezes animated UI elements
body: <p>In my activity, my app downloads a list of something from a website via an Http Connection. Before this list of things is displayed on the screen, I have a <strong>Loading...</strong> TextView with a little spinning ProgressBar to indicate that the data is currnetly being downloaded.</p>
  
  <p>I noticed, that if I do any type of <code>Thread.sleep()</code> during the process of fetching the data from the web, it freezes the spinning <code>ProgressBar</code>.</p>
  
  <p>Even if I put the method in it's own <code>Handler Runnable</code> so that it's on it's own thread, the animation freezing still occurs.</p>
  
  <p>Is there anything I can do about this?</p>