BVtp
BVtp

Reputation: 2480

changing size of Android's default progress bar

I'm using the default Android's progress bar :

style="?android:attr/progressBarStyleHorizontal"

It is displayed like this :

enter image description here

I just want to make it a bit bigger (raise its height) with minimal actions. Is it possible? Tried doing minHeight and maxHeight, didn't help..

Thank you.

Upvotes: 0

Views: 4195

Answers (1)

Bala Saikrupa Puram
Bala Saikrupa Puram

Reputation: 721

<style name="CustomProgressBarHorizontal" parent="android:Widget.ProgressBar.Horizontal">
      <item name="android:progressDrawable">@drawable/custom_progress_bar_horizontal</item>
      <item name="android:minHeight">10dip</item>
      <item name="android:maxHeight">20dip</item>
</style>

source Click Here

Upvotes: 1

Related Questions