Skip to content

Commit 8b2c55e

Browse files
committed
修改图标和 layout
1 parent cc83781 commit 8b2c55e

12 files changed

Lines changed: 14 additions & 16 deletions

File tree

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
<application
55
android:icon="@mipmap/ic_launcher"
6+
android:roundIcon="@mipmap/ic_launcher"
67
android:label="@string/app_name"
78
android:supportsRtl="true"
89
android:theme="@style/Theme.FileEncryptor">

app/src/main/res/drawable/ic_launcher_background.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.

app/src/main/res/drawable/ic_launcher_foreground.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
android:height="108dp"
44
android:viewportWidth="1131"
55
android:viewportHeight="1024">
6-
<group android:scaleX="0.39722222"
7-
android:scaleY="0.35963985"
8-
android:translateX="340.87082"
9-
android:translateY="327.86438">
6+
<group android:scaleX="0.36666667"
7+
android:scaleY="0.33197525"
8+
android:translateX="358.15"
9+
android:translateY="342.02866">
1010
<path
1111
android:pathData="M862.1,404.1a188.6,188.6 0,0 1,188.6 188.6v57.3c46.5,12 80.8,54.1 80.8,104.4v161.6a107.8,107.8 0,0 1,-107.8 107.8L700.4,1023.7a107.8,107.8 0,0 1,-107.8 -107.8v-161.6a107.8,107.8 0,0 1,80.8 -104.4L673.5,592.7a188.6,188.6 0,0 1,188.6 -188.6zM431,0a53.9,53.9 0,0 1,38.2 15.9l3.2,3.5L590.9,161.6h361.8c35.8,0 63.5,5.4 88.8,17.6l6.3,3.2a151.8,151.8 0,0 1,62.8 62.8c13.3,24.9 19.7,51.8 20.7,86.3l0.1,8.8L1131.4,350.2a53.9,53.9 0,0 1,-107.6 4L1023.7,350.2v-9.9c0,-22.1 -2.6,-34.1 -8,-44.2a44,44 0,0 0,-18.6 -18.6c-9.2,-5 -19.9,-7.5 -38.4,-8L952.8,269.4L565.7,269.4a53.9,53.9 0,0 1,-38.2 -15.9l-3.2,-3.5L405.8,107.8L185.6,107.8l-11.2,0.2 -9.3,0.4c-12.7,0.8 -20,2.5 -26.5,5.3l-4.2,2c-8.2,4.4 -14.3,10.5 -18.6,18.6l-2,4.2c-2.8,6.4 -4.5,13.8 -5.3,26.5l-0.4,9.3L107.8,185.6v652.5l0.2,11.2 0.4,9.3c0.8,12.7 2.5,20 5.3,26.5l2,4.2c4.4,8.2 10.5,14.3 18.6,18.6l4.2,2c6.4,2.8 13.8,4.5 26.5,5.3l9.3,0.4 11.2,0.2L456.7,915.9a53.9,53.9 0,0 1,4 107.6l-4,0.1L192,1023.7c-51.9,0 -79.6,-5.3 -108.4,-20.7a151.8,151.8 0,0 1,-62.8 -62.9C6.2,913 0.7,886.9 0.1,840.6L0,831.7L0,192C0,140.1 5.3,112.4 20.7,83.6A151.8,151.8 0,0 1,83.6 20.8C110.7,6.2 136.9,0.7 183.1,0.1L192,0L431,0zM1023.7,754.3L700.4,754.3v161.6h323.3v-161.6zM862.1,511.9a80.8,80.8 0,0 0,-80.8 80.8v53.9h161.6v-53.9a80.8,80.8 0,0 0,-80.8 -80.8z"
1212
android:fillColor="#00A6ED"/>

app/src/main/res/drawable/ic_launcher_foreground_monochrome.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
android:translateY="327.86438">
1010
<path
1111
android:pathData="M862.1,404.1a188.6,188.6 0,0 1,188.6 188.6v57.3c46.5,12 80.8,54.1 80.8,104.4v161.6a107.8,107.8 0,0 1,-107.8 107.8L700.4,1023.7a107.8,107.8 0,0 1,-107.8 -107.8v-161.6a107.8,107.8 0,0 1,80.8 -104.4L673.5,592.7a188.6,188.6 0,0 1,188.6 -188.6zM431,0a53.9,53.9 0,0 1,38.2 15.9l3.2,3.5L590.9,161.6h361.8c35.8,0 63.5,5.4 88.8,17.6l6.3,3.2a151.8,151.8 0,0 1,62.8 62.8c13.3,24.9 19.7,51.8 20.7,86.3l0.1,8.8L1131.4,350.2a53.9,53.9 0,0 1,-107.6 4L1023.7,350.2v-9.9c0,-22.1 -2.6,-34.1 -8,-44.2a44,44 0,0 0,-18.6 -18.6c-9.2,-5 -19.9,-7.5 -38.4,-8L952.8,269.4L565.7,269.4a53.9,53.9 0,0 1,-38.2 -15.9l-3.2,-3.5L405.8,107.8L185.6,107.8l-11.2,0.2 -9.3,0.4c-12.7,0.8 -20,2.5 -26.5,5.3l-4.2,2c-8.2,4.4 -14.3,10.5 -18.6,18.6l-2,4.2c-2.8,6.4 -4.5,13.8 -5.3,26.5l-0.4,9.3L107.8,185.6v652.5l0.2,11.2 0.4,9.3c0.8,12.7 2.5,20 5.3,26.5l2,4.2c4.4,8.2 10.5,14.3 18.6,18.6l4.2,2c6.4,2.8 13.8,4.5 26.5,5.3l9.3,0.4 11.2,0.2L456.7,915.9a53.9,53.9 0,0 1,4 107.6l-4,0.1L192,1023.7c-51.9,0 -79.6,-5.3 -108.4,-20.7a151.8,151.8 0,0 1,-62.8 -62.9C6.2,913 0.7,886.9 0.1,840.6L0,831.7L0,192C0,140.1 5.3,112.4 20.7,83.6A151.8,151.8 0,0 1,83.6 20.8C110.7,6.2 136.9,0.7 183.1,0.1L192,0L431,0zM1023.7,754.3L700.4,754.3v161.6h323.3v-161.6zM862.1,511.9a80.8,80.8 0,0 0,-80.8 80.8v53.9h161.6v-53.9a80.8,80.8 0,0 0,-80.8 -80.8z"
12-
android:fillColor="#000"/>
12+
android:fillColor="#FFF"/>
1313
</group>
1414
</vector>

app/src/main/res/layout/activity_main.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
android:id="@+id/main"
66
android:layout_width="match_parent"
77
android:layout_height="match_parent"
8-
android:padding="20dp"
8+
android:padding="15dp"
99
tools:context=".MainActivity">
1010

1111
<TextView
1212
android:id="@+id/titleTextView"
1313
style="@style/TextAppearance.Material3.HeadlineLarge"
1414
android:layout_width="wrap_content"
1515
android:layout_height="wrap_content"
16-
android:layout_marginTop="20dp"
16+
android:layout_marginTop="40dp"
1717
android:text="@string/app_name"
1818
app:layout_constraintEnd_toEndOf="parent"
1919
app:layout_constraintStart_toStartOf="parent"
@@ -24,7 +24,7 @@
2424
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
2525
android:layout_width="320dp"
2626
android:layout_height="wrap_content"
27-
android:layout_marginTop="25dp"
27+
android:layout_marginTop="40dp"
2828
app:layout_constraintEnd_toEndOf="parent"
2929
app:layout_constraintStart_toStartOf="parent"
3030
app:layout_constraintTop_toBottomOf="@id/titleTextView"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3-
<background android:drawable="@drawable/ic_launcher_background" />
3+
<background android:drawable="@color/ic_launcher_background" />
44
<foreground android:drawable="@drawable/ic_launcher_foreground" />
55
<monochrome android:drawable="@drawable/ic_launcher_foreground_monochrome" />
66
</adaptive-icon>
280 Bytes
Loading
190 Bytes
Loading
448 Bytes
Loading
782 Bytes
Loading

0 commit comments

Comments
 (0)