ProgressBar not displaying
<p>I have an app where I have used ProgressBar in several places.</p>

<pre><code>&lt;ProgressBar
    android:id="@+id/pb_loading_indicator"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:indeterminate="true"
    android:visibility="visible"/&gt;
</code></pre>

<p>All the progressbars are not appearing in any activity.
I have tried all solutions by changing the color of the progressbar programmatically and by adding an xml drawable, but its not working.</p>

<p>Below is my styles.xml</p>

<pre><code>&lt;style name="MyAppCompatTheme" parent="Theme.AppCompat.Light.NoActionBar"&gt;
    &lt;item name="android:colorPrimary"&gt;#FFFFFF&lt;/item&gt;
    &lt;item name="android:colorPrimaryDark"&gt;#F1F1F1&lt;/item&gt;
    &lt;item name="android:colorAccent"&gt;#EF5350&lt;/item&gt;
&lt;/style&gt;
</code></pre>

<p>Technically the progressbar should take the colorAccent, but its not appearing at all.
Posting a sample view: </p>

<pre><code>&lt;RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"&gt;

&lt;ImageView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/logo"
    android:src="@drawable/app_icon"
    android:layout_centerHorizontal="true"
    android:layout_marginTop="120dp"/&gt;

&lt;TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerHorizontal="true"
    android:layout_below="@+id/logo"
    android:textSize="18sp"
    android:id="@+id/subtitle"
    android:textColor="@color/secondary_text"
    android:layout_marginTop="30dp"
    android:text="QUICK BROWN FOX"/&gt;

&lt;ProgressBar
android:id="@+id/pb_loading_indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminate="true"
android:visibility="visible"/&gt;
</code></pre>

<p></p>

<p>The progressbar is not overlapped by any view in any activity of the app. I dont have any other theme in my styles.xml and I am not overriding the activity theme in the manifest also. Its an application level default theme.
Even if i create a new activity with only a progressbar, it doesnt appear.
It is weird as in all the activity design previews, the progress bar appears properly but on running the app it doesnt.
Please let me know if some other info is required.</p>