title: How to make progress bar fill slowly
body: <p>I have a progressbar in drawable. I want it to fill slowly whenset progress is done. That is it I should be able to see it filling, not in a flash. Also I have a texview inside that progressbar, I want that textview to keep revolving and as soon as the set progress filling completes, the textview should stop revolving and display progress.</p>
  <p>Here is my code:</p>
  <p><strong>Layout:</strong></p>
  <p></p>
  <pre><code>    &lt;ProgressBar
          android:id=&quot;@+id/circularProgressBar&quot;
          style=&quot;?android:attr/progressBarStyleHorizontal&quot;
          android:layout_width=&quot;150dip&quot;
          android:layout_height=&quot;150dip&quot;
          android:layout_centerInParent=&quot;true&quot;
          android:indeterminate=&quot;false&quot;
          android:max=&quot;100&quot;
          android:progress=&quot;0&quot;
          android:progressDrawable=&quot;@drawable/progressbar&quot; /&gt;
  
      &lt;TextView
          android:id=&quot;@+id/textView1&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_centerHorizontal=&quot;true&quot;
          android:layout_centerVertical=&quot;true&quot;
          android:textSize=&quot;47sp&quot;
          android:textStyle=&quot;bold&quot;
          android:textColor=&quot;@color/Theme&quot; /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  <p><strong>progressbar.xml</strong></p>
  <pre><code>&lt;layer-list xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; &gt;
  
      &lt;item android:id=&quot;@android:id/background&quot;&gt;
          &lt;shape
              android:innerRadiusRatio=&quot;3&quot;
              android:shape=&quot;ring&quot;
              android:thicknessRatio=&quot;7.0&quot;
              android:useLevel=&quot;false&quot; &gt;
              &lt;solid android:color=&quot;@color/Red&quot; /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
      &lt;item android:id=&quot;@android:id/progress&quot;&gt;
          &lt;shape
              android:innerRadiusRatio=&quot;3&quot;
              android:shape=&quot;ring&quot;
              android:thicknessRatio=&quot;7.0&quot; &gt;
              &lt;solid android:color=&quot;@color/Theme&quot; /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  
  &lt;/layer-list&gt;
  </code></pre>
  <p>Also, I have a textview inside this progressbar, I want it to keep rotating until the progress is done. How to do that, I have an animation for that but it is not working.
  Here is the code:</p>
  <p><strong>rotate.xml</strong></p>
  <pre><code>&lt;rotate xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; &gt;
  android:duration=&quot;4000&quot;
  android:fromdegrees=&quot;0&quot;
  android:pivotx=&quot;50%&quot;
  android:pivoty=&quot;50%&quot;
  android:todegrees=&quot;360&quot;
  android:toyscale=&quot;0.0&quot;
  
  &lt;/rotate&gt;
  </code></pre>
  <p>It gives warnings like this: <strong>Unexpected text found in layout file: &quot;android:fromdegrees=&quot;0&quot; android:pivotx=&quot;50%&quot;
  android:pivoty=&quot;50%&quot; android:todegrees=&quot;360&quot; android:to...&quot;</strong></p>