Android ProgressBar styled like progress view in SwipeRefreshLayout : <p>I use <code>android.support.v4.widget.SwipeRefreshLayout</code> in my Android app. It wraps a <code>ListView</code>. The content of the list view is downloaded from a server.</p>

<p>A progress view is shown when user swipes down in order to reload data from server. The progress view looks like a piece of circle that grows and shrinks during the animation. It seems that the style of this progress view cannot be customized much. However, I am fine with its built-in style.</p>

<p>I also show the same progress animation during initial data loading. This can be achieved by calling <code>mySwipeRefreshLayout.setRefreshing(true)</code>. That's perfectly OK too.</p>

<p>However, I would like to show the same progress indication through the whole app. Consider e.g. another activity that looks like a form with submit button. There is neither a <code>ListView</code> nor a <code>SwipeRefreshLayout</code> in this form activity. Some progress indication should be displayed while the submitted data are transferred to the server. I want to show a progress bar with the same animation like in SwipeRefreshLayout.</p>

<p>Is there a simple and clean way to have the same progress indicator for both a <code>SwipeRefreshLayout</code> and a form activity that does not contain any list view and refresh layout and does not support any swipe gesture?</p>

<p>Thanks.</p>
