glomadrian / dashed-circular-progress

A Circular progress animated where you can put any view inside
572 stars 148 forks source link

Looks odd on lower density screens #6

Open MarcinOrlowski opened 9 years ago

MarcinOrlowski commented 9 years ago

It seems your widget does not correctly adapt to different screen densities as on i.e. 240dpi with 250x250dp container it all look ugly and massive and also seems not properly keeping aspect ratio (according to name it should be "circular" not "oval" :). Here's my XML:

            <com.github.glomadrian.dashedcircularprogress.DashedCircularProgress
                xmlns:custom="http://schemas.android.com/apk/res-auto"
                android:id="@+id/dashed_circular_progress"
                custom:base_color="#6eff0000"
                custom:duration="300"
                custom:external_color="#1aff00ff"

                custom:max="999"
                custom:min="0"
                custom:progress_color="#000000"
                custom:progress_icon="@drawable/ic_upload"
                android:layout_width="250dp"
                android:layout_height="250dp"
                android:layout_gravity="center"
                />

and this is how it looks here:

device-2015-06-09-112740