CardinalNow / Android-CircleProgressIndicator

MIT License
206 stars 49 forks source link

How to change progressbar's width and height? #9

Closed HaobinXu closed 8 years ago

HaobinXu commented 8 years ago

When I set the progressbar width or height like "android:layout_width="10.0dp"", the progressbar will dismiss(because too small).How can I fix it?

jacobhyphenated commented 8 years ago

If you want to change the size of the circular progress bar, you need to change the radius, not the width or height.

In a resources xml, override the circleProgressRadius dimension value. In your case, if you want a radius of 10dp and a thickness of 2dp, use:

<dimen name="circleProgressRadius">10dp</dimen>
<dimen name="circleProgressThickness">2dp</dimen>

See the Readme for other values configurable values.

HaobinXu commented 8 years ago

Thank you!