Size and position the donut.

Change-Id: I06801bfb342be6ded2743f12998371e1aee49ba9
Fixes: 36224169
Test: Manual
This commit is contained in:
Daniel Nishi
2017-03-15 14:30:53 -07:00
parent 5fa4df348b
commit 14ecdf1538
2 changed files with 4 additions and 4 deletions

View File

@@ -67,9 +67,9 @@
<com.android.settings.widget.DonutView
android:id="@+id/donut"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_marginEnd="48dp"
android:layout_width="112dp"
android:layout_height="112dp"
android:layout_marginEnd="16dp"
android:gravity="end|center_vertical"
android:minWidth="58dp"
android:paddingStart="?android:attr/listPreferredItemPaddingStart"

View File

@@ -44,7 +44,7 @@ public class DonutView extends View {
public DonutView(Context context, AttributeSet attrs) {
super(context, attrs);
float density = getResources().getDisplayMetrics().density;
mStrokeWidth = 10f * density;
mStrokeWidth = 6f * density;
mBackgroundCircle = new Paint();
mBackgroundCircle.setAntiAlias(true);