问题描述:

I'm trying to get this horizontal indeterminate progress bar (bottom) looking like the other (top, determinate) progress bars in my app:

I'm using the same style parent for each, but it shows a different progress background, and thickness.

My determinate progress bars are defined as:

<ProgressBar

android:id="@+id/progBar"

android:layout_width="match_parent"

android:layout_height="wrap_content"

style="@style/MyProgressBarStyle" />

And my indeterminate horizontal prog bar:

<ProgressBar

android:id="@+id/progBar"

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:indeterminateOnly="true"

style="@style/MyProgressBarStyle" />

And MyProgressBarStyle:

<style name="MyProgressBarStyle"

parent="Widget.AppCompat.ProgressBar.Horizontal" />

So using the same style for each, why don't they have the same thickness and background? Is there a simple fix to make them look identical?

相关阅读:
Top