Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3788262d authored by Daniel Nishi's avatar Daniel Nishi Committed by Android (Google) Code Review
Browse files

Merge "Size and position the donut."

parents c549c2df 14ecdf15
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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"
+1 −1
Original line number Diff line number Diff line
@@ -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);