title: Threading issues with animation
body: <p>So, I know it's bad practice to ever sleep the UI thread. I've got an issue here though and I'm confused how to get around it. I have a loop that executes inside of the UI thread. One of the methods (<code>placeTile()</code>) has an animation associated with it. Because It's a loop, I need to pause code execution to give time for the animation to complete and allow the user to see what just happened. (Example, like dealing or drawing cards. They should see each tile placed one at a time so that they can follow the flow of the board game.)
  But, since the Android API MUST be run on the UI thread, (Meaning the animation can't happen on a worker thread), how am I supposed to achieve this? If I pause the UI thread, the animation won't run, right? But I can't run the animation on a worker thread. And since the for loop includes the animation, does this mean I just can't pause the loop and allow the animation to complete?</p>
  
  <p>I'm still pretty new to threading so forgive me if I'm missing something obvious.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>public void setUpPlayers(){
  
      //Toast for setting turn order
      smallToast(getResources().getString(R.string.deciding_turn_order));
  
      for (int i = 0; i &lt; players.length; i++) {
          if(i == 0){
              players[i] = new Player("HUMAN", 6000);
              players[i].setType(Player.Type.HUMAN);
          } else {
              players[i] = new Player(playerNames[i], 6000);
              players[i].setType(Player.Type.COMPUTER);
          }           
          players[i].drawTile(1);
  
          TextView nameText = (TextView) findViewById(R.id.current_player_text);
          nameText.setText(players[i].getName());
  
          //find the ID for the tile just placed
          String tileID = players[i].findTileIdByIndex(0);
  
          placeTile(tileID, i); //Tile ID being placed, and the index of the player placing it
  
          //TODO: Pause and wait for animation to complete
      }
  }
  </code></pre>