Merge "Size and position the donut."

This commit is contained in:
Daniel Nishi
2017-03-17 22:54:43 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 4 deletions

View File

@@ -68,9 +68,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);