<ProgressBar
android:id="@id/progress"
- style="?android:attr/progressBarStyleSmall"
+ style="?android:attr/progressBarStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:max="10000"
- android:layout_marginEnd="?attr/dialogPreferredPadding" />
+ android:layout_marginEnd="8dp" />
<TextView
android:id="@+id/message"
+ android:textAppearance="?attr/textAppearanceListItem"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical" />
<!-- Date and time picker legacy dimens -->
<dimen name="picker_top_margin">1dip</dimen>
<dimen name="picker_bottom_margin">1dip</dimen>
+
+ <!-- Progress bar dimens -->
+ <dimen name="progress_bar_size_small">16dip</dimen>
+ <dimen name="progress_bar_size_medium">32dip</dimen>
+ <dimen name="progress_bar_size_large">64dip</dimen>
</resources>
<!-- Date and time picker legacy dimens -->
<dimen name="picker_top_margin">16dip</dimen>
<dimen name="picker_bottom_margin">16dip</dimen>
+
+ <!-- Progress bar dimens -->
+ <dimen name="progress_bar_size_small">16dip</dimen>
+ <dimen name="progress_bar_size_medium">48dp</dimen>
+ <dimen name="progress_bar_size_large">76dp</dimen>
</resources>
<style name="Widget.Material.ProgressBar" parent="Widget.ProgressBar">
<item name="indeterminateDrawable">@drawable/progress_medium_material</item>
+ <item name="minWidth">@dimen/progress_bar_size_medium</item>
+ <item name="maxWidth">@dimen/progress_bar_size_medium</item>
+ <item name="minHeight">@dimen/progress_bar_size_medium</item>
+ <item name="maxHeight">@dimen/progress_bar_size_medium</item>
</style>
<style name="Widget.Material.ProgressBar.Inverse"/>
<style name="Widget.Material.ProgressBar.Small" parent="Widget.ProgressBar.Small">
<item name="indeterminateDrawable">@drawable/progress_small_material</item>
+ <item name="minWidth">@dimen/progress_bar_size_small</item>
+ <item name="maxWidth">@dimen/progress_bar_size_small</item>
+ <item name="minHeight">@dimen/progress_bar_size_small</item>
+ <item name="maxHeight">@dimen/progress_bar_size_small</item>
</style>
<style name="Widget.Material.ProgressBar.Small.Inverse"/>
<style name="Widget.Material.ProgressBar.Large" parent="Widget.ProgressBar.Large">
<item name="indeterminateDrawable">@drawable/progress_large_material</item>
+ <item name="minWidth">@dimen/progress_bar_size_large</item>
+ <item name="maxWidth">@dimen/progress_bar_size_large</item>
+ <item name="minHeight">@dimen/progress_bar_size_large</item>
+ <item name="maxHeight">@dimen/progress_bar_size_large</item>
</style>
<style name="Widget.Material.ProgressBar.Large.Inverse"/>