I have the following layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ProgressBar
style="@android:style/Widget.Material.ProgressBar.Large"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
I have a Nexus 5 running Android 5.0.1
that doesn't display the ProgressBar
, obviously because of the style. When I set the style for example to
style="@android:style/Widget.ProgressBar.Large"
or
style="@android:style/Widget.Holo.ProgressBar.Large"
it is shown. I have an identical Nexus 5 also running Android 5.0.1
which displays all the ProgressBar
s fine.
Enabling the 'draw layout borders' option in the developers options, it shows that the ProgressBar
is included in the layout, it is simply not shown.
This seems very strange, any idea on what could be going on here?