修正分針、時針長度
This commit is contained in:
parent
d9ac3caf85
commit
9b26d5e4ab
@ -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
|
||||
)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item
|
||||
android:width="15dp"
|
||||
android:width="20dp"
|
||||
android:height="200dp">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@android:color/transparent" />
|
||||
@ -8,7 +8,7 @@
|
||||
</shape>
|
||||
</item>
|
||||
<item
|
||||
android:width="5dp"
|
||||
android:width="10dp"
|
||||
android:height="100dp"
|
||||
android:top="0dp"
|
||||
android:left="5dp"
|
||||
@ -19,20 +19,20 @@
|
||||
</shape>
|
||||
</item>
|
||||
<item
|
||||
android:width="7.5dp"
|
||||
android:width="15dp"
|
||||
android:height="75dp"
|
||||
android:top="0dp"
|
||||
android:left="3.75dp"
|
||||
android:right="3.75dp">
|
||||
android:left="2.5dp"
|
||||
android:right="2.5dp">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/black" />
|
||||
<corners android:radius="10dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item
|
||||
android:width="15dp"
|
||||
android:height="15dp"
|
||||
android:top="92.5dp">
|
||||
android:width="20dp"
|
||||
android:height="20dp"
|
||||
android:top="90dp">
|
||||
<shape android:shape="oval">
|
||||
<stroke android:color="@color/black" android:width="2dp" />
|
||||
<solid android:color="@color/black" />
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item
|
||||
android:width="15dp"
|
||||
android:height="295dp">
|
||||
android:width="20dp"
|
||||
android:height="285dp">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@android:color/transparent" />
|
||||
<corners android:radius="10dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item
|
||||
android:width="5dp"
|
||||
android:height="147.5dp"
|
||||
android:width="10dp"
|
||||
android:height="142.5dp"
|
||||
android:top="0dp"
|
||||
android:left="5dp"
|
||||
android:right="5dp">
|
||||
@ -19,20 +19,20 @@
|
||||
</shape>
|
||||
</item>
|
||||
<item
|
||||
android:width="7.5dp"
|
||||
android:height="125dp"
|
||||
android:width="15dp"
|
||||
android:height="118dp"
|
||||
android:top="0dp"
|
||||
android:left="3.75dp"
|
||||
android:right="3.75dp">
|
||||
android:left="2.5dp"
|
||||
android:right="2.5dp">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/black" />
|
||||
<corners android:radius="10dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item
|
||||
android:width="15dp"
|
||||
android:height="15dp"
|
||||
android:top="140dp">
|
||||
android:width="20dp"
|
||||
android:height="20dp"
|
||||
android:top="132.5dp">
|
||||
<shape android:shape="oval">
|
||||
<stroke android:color="@color/black" android:width="2dp" />
|
||||
<solid android:color="@color/black" />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user