Przeglądaj źródła

Changed application icon

sirekanyan 8 lat temu
rodzic
commit
671ab7e996

+ 2 - 2
app/src/main/AndroidManifest.xml

@@ -10,9 +10,9 @@
         android:name=".App"
         android:allowBackup="true"
         android:fullBackupContent="false"
-        android:icon="@drawable/ic_letter_k"
+        android:icon="@mipmap/ic_launcher"
         android:label="@string/app_name"
-        android:roundIcon="@drawable/ic_letter_k"
+        android:roundIcon="@mipmap/ic_launcher_round"
         android:supportsRtl="true"
         android:theme="@style/AppTheme"
         tools:ignore="GoogleAppIndexingWarning">

BIN
app/src/main/ic_launcher-web.png


+ 1 - 1
app/src/main/java/me/vadik/knigopis/MainActivity.kt

@@ -130,7 +130,7 @@ class MainActivity : AppCompatActivity(), Router {
           versionView.text = BuildConfig.VERSION_NAME
           var count = 0
           versionView.setOnClickListener {
-            (++count >= 12).let { enable ->
+            (++count == 12).let { enable ->
               config.setDevMode(enable)
               if (enable) toast("???")
             }

+ 0 - 5
app/src/main/res/drawable/ic_letter_k.xml

@@ -1,5 +0,0 @@
-<vector android:height="24dp" android:viewportHeight="512.0"
-    android:viewportWidth="512.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
-    <path android:fillColor="#3F51B5" android:pathData="M512,455.1c0,31.4 -25.5,56.9 -56.9,56.9L56.9,512C25.5,512 0,486.5 0,455.1L0,56.9C0,25.5 25.5,0 56.9,0l398.2,0C486.5,0 512,25.5 512,56.9L512,455.1z"/>
-    <path android:fillColor="#FFFFFF" android:pathData="M141.2,128.5c0,-18.1 13.2,-32.6 33.1,-32.6c19,0 33.1,12.3 33.1,32.6l0,95.2l108.5,-115.5c4.9,-5.3 13.2,-12.3 25.6,-12.3c16.7,0 32.6,12.8 32.6,31.7c0,11.5 -7.1,20.7 -21.6,35.3l-83.4,82l101.9,106.3c10.6,10.6 18.5,20.3 18.5,33.5c0,20.7 -16.3,30.4 -34.4,30.4c-12.8,0 -21.2,-7.5 -33.5,-20.7l-114.2,-123.5l0,112.4c0,17.2 -13.2,31.7 -33.1,31.7c-19,0 -33.1,-12.3 -33.1,-31.7L141.2,128.5z"/>
-</vector>

+ 3 - 8
app/src/main/res/layout/about.xml

@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    xmlns:app="http://schemas.android.com/apk/res-auto"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
@@ -15,10 +14,10 @@
     android:paddingTop="16dp">
 
     <ImageView
-        android:layout_width="40dp"
-        android:layout_height="40dp"
+        android:layout_width="64dp"
+        android:layout_height="64dp"
         android:layout_gravity="center_horizontal"
-        app:srcCompat="@drawable/ic_letter_k"
+        android:src="@mipmap/ic_launcher"
         tools:ignore="ContentDescription" />
 
     <TextView
@@ -48,10 +47,6 @@
             style="@style/AboutItem"
             android:text="@string/about_idea" />
 
-        <TextView
-            style="@style/AboutItem"
-            android:text="@string/about_logo" />
-
         <TextView
             style="@style/AboutItem"
             android:text="@string/about_developer" />

+ 5 - 0
app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+    <background android:drawable="@color/ic_launcher_background"/>
+    <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
+</adaptive-icon>

+ 5 - 0
app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+    <background android:drawable="@color/ic_launcher_background"/>
+    <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
+</adaptive-icon>

BIN
app/src/main/res/mipmap-hdpi/ic_launcher.png


BIN
app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png


BIN
app/src/main/res/mipmap-hdpi/ic_launcher_round.png


BIN
app/src/main/res/mipmap-mdpi/ic_launcher.png


BIN
app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png


BIN
app/src/main/res/mipmap-mdpi/ic_launcher_round.png


BIN
app/src/main/res/mipmap-xhdpi/ic_launcher.png


BIN
app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png


BIN
app/src/main/res/mipmap-xhdpi/ic_launcher_round.png


BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher.png


BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png


BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png


BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher.png


BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png


BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png


+ 0 - 1
app/src/main/res/values-ru/strings.xml

@@ -43,7 +43,6 @@
 
     <!-- about -->
     <string name="about_idea">Идея — http://knigopis.com</string>
-    <string name="about_logo">Логотип — https://twitter.com</string>
     <string name="about_developer">Разработка — vadik@sirekanyan.com</string>
     <string name="about_designer">Дизайн — anna@sirekanyan.com</string>
 

+ 1 - 0
app/src/main/res/values/colors.xml

@@ -7,4 +7,5 @@
     <color name="white_12">#E1E1E1</color>
     <color name="black_12">#1F1F1F</color>
     <color name="black_54">#757575</color>
+    <color name="ic_launcher_background">@color/colorPrimary</color>
 </resources>

+ 2 - 3
app/src/main/res/values/strings.xml

@@ -43,9 +43,8 @@
 
     <!-- about -->
     <string name="about_idea">API — http://knigopis.com</string>
-    <string name="about_logo">Logo — https://twitter.com</string>
-    <string name="about_developer">Developer — vadik@sirekanyan.com</string>
-    <string name="about_designer">Designer — anna@sirekanyan.com</string>
+    <string name="about_developer">Development — vadik@sirekanyan.com</string>
+    <string name="about_designer">Design — anna@sirekanyan.com</string>
 
     <!-- error -->
     <string name="error_unauthorized">Welcome to Knigopis! Please log in.</string>