title: AsyncTasks in different custom compound views don't start simultaneity
body: <p>I have created a custom compound view that contains some <code>TextView</code> and a <code>ProgressBar</code>. After adding these components I start an animation for complete view entrance. Also I have defined an <code>AnimationListener</code> that when the animation is completed, it starts an <code>AsyncTask</code> that will be used to animate <code>ProgressBar</code>. Here is what I done. After adding inner components I have this animation:</p>
  
  <pre><code>Animation animation = AnimationUtils.loadAnimation(getContext(),
                      mAnimationId);
              animation.setAnimationListener(new AnimationListener() {
  
                  @Override
                  public void onAnimationStart(Animation animation) {
  
                  }
  
                  @Override
                  public void onAnimationRepeat(Animation animation) {
  
                  }
  
                  @Override
                  public void onAnimationEnd(Animation animation) {
  
                      new ProgressTak().execute();
                  }
              });
              startAnimation(animation);
  </code></pre>
  
  <p>And here is <code>AsyncTask</code>:</p>
  
  <pre><code>class ProgressTak extends AsyncTask&lt;Void, Integer, Void&gt; {
  
          Handler handler = new Handler();
  
          @Override
          protected Void doInBackground(Void... params) {
  
              for (int i = 0; i &lt; mProgress; i++) {
                  i++;
                  publishProgress(i);
                  try {
                      Thread.sleep(30);
                  } catch (InterruptedException e) {
                      e.printStackTrace();
                  }
              }
              return null;
          }
  
          @Override
          protected void onProgressUpdate(Integer... values) {
              progressBar.setProgress(values[0]);
          }
  
      }
  </code></pre>
  
  <p>Everything works fine. But the problem is when I add two instance of my custom view to an activity, the progress bar animation in second activity starts when the progress bar animation in first activity is completed. But I want they act concurrently. What should I do?</p>
  
  <p>Thanks </p>