title: How to display text in center of an indeterminate ProgressBar (spinning wheel)?
body: <p>How to display text in center of an indeterminate ProgressBar (spinning wheel)?</p>
  
  <p>I want to display seconds in the center. Using android API-19.
  The <a href="http://developer.android.com/reference/android/widget/ProgressBar.html" rel="nofollow">docs</a> say that to show progress, horizontal bar must be used. 
  However, if I can display text in the center, then that will work for me.</p>
  
  <p>So again, how do I set the text to display in a spinning wheel progress bar?</p>
  
  <p>(I would prefer to try to use the existing API before running off to build a custom Progress Bar)</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      tools:context="com.mycom.countdowntimer.CountdownMainActivity$PlaceholderFragment" &gt;
  
      &lt;ProgressBar
          android:id="@+id/progressBar1"
          android:indeterminate="true"
          style="?android:attr/progressBarStyleLarge"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginTop="87dp" /&gt;   
  &lt;/RelativeLayout&gt;
  </code></pre>