I was trying to think of a more appropriate title for this thread but couldn't to describe my issue.
Here is the progressBar xml code I'm using:
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/progressBar"
android:layout_centerInParent="true"/>
Here is the code in my AppCompatActivity:
progressBar = (ProgressBar) findViewById(R.id.progressBar);
progressBar.setIndeterminate(true);
When the progressBar starts up, it looks like this - which looks like the outdated version of a progressBar:
Then after a few seconds, it changes to this type of progressBar which looks like the new design:
How can I get it to show the new design from the start as I don't want the older looking progressBar to be displayed?
This is the theme I'm using for my activity:
<style name="Theme.AppCompat.Light.NoActionBar.FullScreen" parent="Theme.AppCompat.NoActionBar">
<item name="android:windowBackground">@color/primary</item>
<item name="colorPrimary">@color/primary</item>
<item name="colorPrimaryDark">@color/primary_dark</item>
<item name="colorAccent">@color/deep_orange_500</item>
<item name="colorControlNormal">@color/iron</item>
<item name="colorControlActivated">@color/white</item>
<item name="colorControlHighlight">@color/white</item>
<item name="android:textColorHint">@color/iron</item>
<item name="colorButtonNormal">@color/primary_darker</item>
<item name="android:colorButtonNormal">@color/primary_darker</item>
</style>
I have noticed that this occurs when I change the visibility of items within my layout. I have a login button that when clicked would hide everything and display the progressBar. When I click on the login button, the screen goes back to show the status bar at the top for a few seconds and the progressBar reflects the old non-material theme progressBar. When the status bar disappears again, the new progressBar appears on screen.
It makes me think that the theme is not honoured when visibility of items are changed?

