OSDN Git Service

Adaptive icon for Camera2 AOSP
authorHyunyoung Song <hyunyoungs@google.com>
Tue, 15 Aug 2017 18:08:44 +0000 (11:08 -0700)
committerHyunyoung Song <hyunyoungs@google.com>
Tue, 15 Aug 2017 18:17:38 +0000 (11:17 -0700)
Bug: 64332797
Test: manual

Change-Id: I91ddd5db21f4164ef52d2de94230c0298cc7394c

13 files changed:
AndroidManifest.xml
res/values/colors.xml
res_p/mipmap-anydpi/logo_camera_color.xml [new file with mode: 0644]
res_p/mipmap-hdpi/logo_camera_color_44in48dp.png [deleted file]
res_p/mipmap-hdpi/logo_camera_color_foreground.png [new file with mode: 0644]
res_p/mipmap-mdpi/logo_camera_color_44in48dp.png [deleted file]
res_p/mipmap-mdpi/logo_camera_color_foreground.png [new file with mode: 0644]
res_p/mipmap-xhdpi/logo_camera_color_44in48dp.png [deleted file]
res_p/mipmap-xhdpi/logo_camera_color_foreground.png [new file with mode: 0644]
res_p/mipmap-xxhdpi/logo_camera_color_44in48dp.png [deleted file]
res_p/mipmap-xxhdpi/logo_camera_color_foreground.png [new file with mode: 0644]
res_p/mipmap-xxxhdpi/logo_camera_color_44in48dp.png [deleted file]
res_p/mipmap-xxxhdpi/logo_camera_color_foreground.png [new file with mode: 0644]

index ddb8920..5fb8838 100644 (file)
@@ -39,7 +39,7 @@
     <application
         android:name="com.android.camera.app.CameraApp"
         android:hardwareAccelerated="true"
-        android:icon="@mipmap/logo_camera_color_44in48dp"
+        android:icon="@mipmap/logo_camera_color"
         android:label="@string/app_name"
         android:largeHeap="true"
         android:resizeableActivity="false"
index b9735d9..3f0ea51 100644 (file)
@@ -77,4 +77,5 @@
     <color name="mode_icon_hover_highlight">#2DFFFFFF</color>
 
     <color name="blue_button_text_color">#00838F</color>
+    <color name="ic_launcher_background">#4285f4</color>
 </resources>
diff --git a/res_p/mipmap-anydpi/logo_camera_color.xml b/res_p/mipmap-anydpi/logo_camera_color.xml
new file mode 100644 (file)
index 0000000..f9cf273
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2012 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+    <background android:drawable="@color/ic_launcher_background"/>
+    <foreground android:drawable="@mipmap/logo_camera_color_foreground"/>
+</adaptive-icon>
diff --git a/res_p/mipmap-hdpi/logo_camera_color_44in48dp.png b/res_p/mipmap-hdpi/logo_camera_color_44in48dp.png
deleted file mode 100644 (file)
index 1ac6b58..0000000
Binary files a/res_p/mipmap-hdpi/logo_camera_color_44in48dp.png and /dev/null differ
diff --git a/res_p/mipmap-hdpi/logo_camera_color_foreground.png b/res_p/mipmap-hdpi/logo_camera_color_foreground.png
new file mode 100644 (file)
index 0000000..c172419
Binary files /dev/null and b/res_p/mipmap-hdpi/logo_camera_color_foreground.png differ
diff --git a/res_p/mipmap-mdpi/logo_camera_color_44in48dp.png b/res_p/mipmap-mdpi/logo_camera_color_44in48dp.png
deleted file mode 100644 (file)
index 3868f15..0000000
Binary files a/res_p/mipmap-mdpi/logo_camera_color_44in48dp.png and /dev/null differ
diff --git a/res_p/mipmap-mdpi/logo_camera_color_foreground.png b/res_p/mipmap-mdpi/logo_camera_color_foreground.png
new file mode 100644 (file)
index 0000000..aaad2a9
Binary files /dev/null and b/res_p/mipmap-mdpi/logo_camera_color_foreground.png differ
diff --git a/res_p/mipmap-xhdpi/logo_camera_color_44in48dp.png b/res_p/mipmap-xhdpi/logo_camera_color_44in48dp.png
deleted file mode 100644 (file)
index 7593dc3..0000000
Binary files a/res_p/mipmap-xhdpi/logo_camera_color_44in48dp.png and /dev/null differ
diff --git a/res_p/mipmap-xhdpi/logo_camera_color_foreground.png b/res_p/mipmap-xhdpi/logo_camera_color_foreground.png
new file mode 100644 (file)
index 0000000..8046dbf
Binary files /dev/null and b/res_p/mipmap-xhdpi/logo_camera_color_foreground.png differ
diff --git a/res_p/mipmap-xxhdpi/logo_camera_color_44in48dp.png b/res_p/mipmap-xxhdpi/logo_camera_color_44in48dp.png
deleted file mode 100644 (file)
index a989efe..0000000
Binary files a/res_p/mipmap-xxhdpi/logo_camera_color_44in48dp.png and /dev/null differ
diff --git a/res_p/mipmap-xxhdpi/logo_camera_color_foreground.png b/res_p/mipmap-xxhdpi/logo_camera_color_foreground.png
new file mode 100644 (file)
index 0000000..d517b97
Binary files /dev/null and b/res_p/mipmap-xxhdpi/logo_camera_color_foreground.png differ
diff --git a/res_p/mipmap-xxxhdpi/logo_camera_color_44in48dp.png b/res_p/mipmap-xxxhdpi/logo_camera_color_44in48dp.png
deleted file mode 100644 (file)
index 9264c34..0000000
Binary files a/res_p/mipmap-xxxhdpi/logo_camera_color_44in48dp.png and /dev/null differ
diff --git a/res_p/mipmap-xxxhdpi/logo_camera_color_foreground.png b/res_p/mipmap-xxxhdpi/logo_camera_color_foreground.png
new file mode 100644 (file)
index 0000000..fad721f
Binary files /dev/null and b/res_p/mipmap-xxxhdpi/logo_camera_color_foreground.png differ