title: How to use gif image in progress bar
body: <p>I have tried all code but i can't find solution how use this (GIF)image in my progessbar</p>
  
  <p><strong>XML file</strong></p>
  
  <pre><code>&lt;ProgressBar
      android:id="@+id/progressBar"
      style="@style/GenericProgressIndicator"
      android:layout_width="fill_parent"
      android:layout_height="200px"
      android:layout_centerInParent="true"
      android:visibility="visible"
      android:layout_centerHorizontal="true"
      android:layout_centerVertical="true"
      android:indeterminateDrawable="@drawable/animation" &gt;
  &lt;/ProgressBar&gt;
  </code></pre>
  
  <p><strong>JAVA File</strong></p>
  
  <pre><code>ProgressBar  bar=(ProgressBar)findViewById(R.id.progressBar);
  </code></pre>
  
  <p><strong>Want to use this image in progress bar</strong>
  <a href="https://i.stack.imgur.com/ZupHq.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZupHq.gif" alt="Want to use this image in progress bar"></a></p>