title: loading dots using AnimationDrawable and XML shape
body: <p>I want to made animation looks like that <a href="https://www.bensherman.co.uk/img/skin/loading.gif" rel="nofollow">https://www.bensherman.co.uk/img/skin/loading.gif</a></p>
  
  <p>Using xml shape files. For now on Ive have:
  <strong>EmptyDot XML</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
      android:shape="oval" android:useLevel="true"
      android:dither="true"&gt;
  
      &lt;size android:height="12dip" android:width="12dip"/&gt;
  
      &lt;solid android:color="#f214"/&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p><strong>BiggerdotXML</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
          android:shape="oval" android:useLevel="true"
          android:dither="true"&gt;
  
          &lt;size android:height="15dip" android:width="15dip"/&gt;
  
          &lt;solid android:color="#f214"/&gt;
      &lt;/shape&gt;
  </code></pre>
  
  <p><strong>anim list XML</strong></p>
  
  <pre><code> &lt;animation-list
          xmlns:android="http://schemas.android.com/apk/res/android"
          android:oneshot="false" &gt;
  
           &lt;item android:drawable="@drawable/EmptyDot" android:duration="300" /&gt;
  
           &lt;item android:drawable="@drawable/BiggerDot" android:duration="300"
               /&gt;
  
      &lt;/animation-list&gt;
  </code></pre>
  
  <p><strong>MainActivity</strong></p>
  
  <pre><code>ImageView loadingDots = (ImageView) findViewById(R.id.loadIngDots);
          final AnimationDrawable myAnimationDrawable
                  = (AnimationDrawable)loadingDots.getDrawable();
  
          loadingDots.post(
                  new Runnable(){
  
                      @Override
                      public void run() {
                          myAnimationDrawable.start();
                      }
                  });
  </code></pre>
  
  <p>How can I store the XML views that can consist several Dot XML file that i can use in Animation list ? For example in my anim list XML I want to obtain somthing like that:</p>
  
  <p>item 1 BiggerdotXML,EmptydotXML,EmptydotXML,EmptydotXML<br>
  item 2 EmptydotXML,BiggerdotXML,EmptydotXML,EmptydotXML<br>
  item 3 EmptydotXML,EmptydotXML,BiggerdotXML,EmptydotXML<br>
  item 4 EmptydotXML,EmptydotXML,EmptydotXML,BiggerdotXML<br></p>