From 9b26d5e4ab02223b11cc20b57ebbdf6fbcf2afc5 Mon Sep 17 00:00:00 2001 From: Raymond Yang Date: Mon, 10 Apr 2023 14:23:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=88=86=E9=87=9D=E3=80=81?= =?UTF-8?q?=E6=99=82=E9=87=9D=E9=95=B7=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ray650128/iosclockwidget/IOSClockView.kt | 6 ++--- app/src/main/res/drawable/img_hour_hand.xml | 16 +++++++------- app/src/main/res/drawable/img_minute_hand.xml | 22 +++++++++---------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/app/src/main/java/com/ray650128/iosclockwidget/IOSClockView.kt b/app/src/main/java/com/ray650128/iosclockwidget/IOSClockView.kt index 0b1f7f5..0c00bad 100644 --- a/app/src/main/java/com/ray650128/iosclockwidget/IOSClockView.kt +++ b/app/src/main/java/com/ray650128/iosclockwidget/IOSClockView.kt @@ -202,7 +202,7 @@ class IOSClockView: View { canvas?.rotate(angleMinute, centerX, centerY) val rectMinute = RectF( centerX - (width * 0.02f) / 2, - centerY - radius + 20f, + centerY - radius + 40f, centerX + (width * 0.02f) / 2, centerY - radius / 6 ) @@ -214,7 +214,7 @@ class IOSClockView: View { val rectMinute2 = RectF( centerX - (width * 0.01f) / 2, - centerY - radius + 20f, + centerY - radius + 40f, centerX + (width * 0.01f) / 2, centerY ) @@ -237,7 +237,7 @@ class IOSClockView: View { canvas?.rotate(angleSecond, centerX, centerY) val rectSecond = RectF( centerX - (width * 0.005f) / 2, - centerY - radius + 20, + centerY - radius + 25f, centerX + (width * 0.005f) / 2, centerY + radius / 6 ) diff --git a/app/src/main/res/drawable/img_hour_hand.xml b/app/src/main/res/drawable/img_hour_hand.xml index 76d6964..f4d1d6a 100644 --- a/app/src/main/res/drawable/img_hour_hand.xml +++ b/app/src/main/res/drawable/img_hour_hand.xml @@ -1,6 +1,6 @@ @@ -8,7 +8,7 @@ + android:left="2.5dp" + android:right="2.5dp"> + android:width="20dp" + android:height="20dp" + android:top="90dp"> diff --git a/app/src/main/res/drawable/img_minute_hand.xml b/app/src/main/res/drawable/img_minute_hand.xml index df03742..427ff45 100644 --- a/app/src/main/res/drawable/img_minute_hand.xml +++ b/app/src/main/res/drawable/img_minute_hand.xml @@ -1,15 +1,15 @@ + android:width="20dp" + android:height="285dp"> @@ -19,20 +19,20 @@ + android:left="2.5dp" + android:right="2.5dp"> + android:width="20dp" + android:height="20dp" + android:top="132.5dp">