Size and position the donut.
Change-Id: I06801bfb342be6ded2743f12998371e1aee49ba9 Fixes: 36224169 Test: Manual
This commit is contained in:
@@ -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"
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user