title: Is there a way to customize the default progress bar (circular, not horizontal), with out using drawable resources?
body: <p>I am just wondering if there is a simple way to customize the default circular progress bar provided in android.</p>
  
  <p>Let me clarify the question.</p>
  
  <p>I just want a circular shape showing some dynamism representing progress (network connection) as shown on many apps, below the text displaying my application name in full screen.</p>
  
  <p>What I've tried.</p>
  
  <p>1) Using a ProgressDialog. I could add the title of the app successfully and got the spinner(circle) right. But could not place it on horizontal center it on the dialog. It was always displayed on the left. Then I came to know from some post that it is not possible to customize that way. Is it true? I am not sure. But I did not found any suitable API for doing that.</p>
  
  <p>2) Next I tried a custom dialog with a progressbar in it. I change the background of the dialog, added my app title text and made it full screen. Below is the xml layout.</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent" 
      android:orientation="vertical"
      android:background="@color/bgcolor"&gt;
  
      &lt;TextView android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="MY APP NAME"
          android:textStyle="bold"
          android:textColor="#FFFFFF"  
          android:textSize="25sp" 
          android:gravity="center_horizontal"
          android:layout_marginTop="100dp" /&gt;
  
  
       &lt;ProgressBar android:id="@+id/login_progressbar" 
          android:layout_marginTop="20dp"
          style="?android:attr/progressBarStyle"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"  /&gt;"
  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>in activity code i have created the dialog like:</p>
  
  <pre><code> dialog = new Dialog(this, android.R.style.Theme_DeviceDefault_NoActionBar_Fullscreen);
  </code></pre>
  
  <p>And I almost achieved what I want but not 100%. I got a non horizontal progress bar. But its not a simple circular shape as displayed on a gingerbread phone. Its like two bars and a circle being displaced alternatively.</p>
  
  <p>But in a jellybean tablet, it's like a rotating circle, the way I want. This seems to be device/app theme related issue.</p>
  
  <p>So, how can I get a customized uniform look on all devices(And I don't want to use image for this) like the below images:</p>
  
  <p><img src="https://i.stack.imgur.com/b6n1I.png" alt="enter image description here"> or <img src="https://i.stack.imgur.com/7H6OF.jpg" alt="enter image description here"></p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>The issue related to difference in behavior on jelly bean tab and gingerbread phone turned out to be a funny thing.</p>
  
  <p>By changing <code>android:layout_width="match_parent"</code> to <code>android:layout_width="wrap_content"</code> in the xml layout solved it. In phone the view (spinner) was stretching extra to match parent so was the behavior. But in tab, though it was matching the parent, any how it managed to get displayed as expected, perhaps due to lots of screen space. Still I think there should be some easy way to customize ProgressBar or ProgressDialog in android.</p>
  
  <p>Some link or reference regarding more details on <strong>style="?android:attr/progressBarStyle"</strong> would be helpful.</p>