From 98bfdc37ec50e177fc0b8d76eb5a1f19586b60ad Mon Sep 17 00:00:00 2001 From: Hyunyoung Song Date: Mon, 18 Nov 2019 21:45:04 -0800 Subject: [PATCH] Add heart shape to icon shape overlay (will show up in custom options) Bug: 144740110 Test: installed the apk and then changed it in custom style options $ adb install out/target/product/generic/system/product/overlay/IconShapeHeart/IconShapeHeartOverlay.apk Change-Id: Ia1288428ed5924178b58b392583075a220e980a3 --- .../overlays/IconShapeHeartOverlay/Android.mk | 29 ++++++++++++++++++ .../IconShapeHeartOverlay/AndroidManifest.xml | 29 ++++++++++++++++++ .../res/values/config.xml | 30 +++++++++++++++++++ .../res/values/strings.xml | 23 ++++++++++++++ 4 files changed, 111 insertions(+) create mode 100644 packages/overlays/IconShapeHeartOverlay/Android.mk create mode 100644 packages/overlays/IconShapeHeartOverlay/AndroidManifest.xml create mode 100644 packages/overlays/IconShapeHeartOverlay/res/values/config.xml create mode 100644 packages/overlays/IconShapeHeartOverlay/res/values/strings.xml diff --git a/packages/overlays/IconShapeHeartOverlay/Android.mk b/packages/overlays/IconShapeHeartOverlay/Android.mk new file mode 100644 index 0000000000000..20fe71feac6fd --- /dev/null +++ b/packages/overlays/IconShapeHeartOverlay/Android.mk @@ -0,0 +1,29 @@ +# +# Copyright 2019, 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. +# + +LOCAL_PATH:= $(call my-dir) +include $(CLEAR_VARS) + +LOCAL_RRO_THEME := IconShapeHeart + +LOCAL_PRODUCT_MODULE := true + +LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res + +LOCAL_PACKAGE_NAME := IconShapeHeartOverlay +LOCAL_SDK_VERSION := current + +include $(BUILD_RRO_PACKAGE) diff --git a/packages/overlays/IconShapeHeartOverlay/AndroidManifest.xml b/packages/overlays/IconShapeHeartOverlay/AndroidManifest.xml new file mode 100644 index 0000000000000..8fb19df33178e --- /dev/null +++ b/packages/overlays/IconShapeHeartOverlay/AndroidManifest.xml @@ -0,0 +1,29 @@ + + + + + + diff --git a/packages/overlays/IconShapeHeartOverlay/res/values/config.xml b/packages/overlays/IconShapeHeartOverlay/res/values/config.xml new file mode 100644 index 0000000000000..f9929f5f19681 --- /dev/null +++ b/packages/overlays/IconShapeHeartOverlay/res/values/config.xml @@ -0,0 +1,30 @@ + + + + + "M50,20 C45,0 30,0 25,0 20,0 0,5 0,34 0,72 40,97 50,100 60,97 100,72 100,34 100,5 80,0 75,0 70,0 55,0 50,20 Z" + + false + + 8dp + + 16dp + + + diff --git a/packages/overlays/IconShapeHeartOverlay/res/values/strings.xml b/packages/overlays/IconShapeHeartOverlay/res/values/strings.xml new file mode 100644 index 0000000000000..92c33fa3032c8 --- /dev/null +++ b/packages/overlays/IconShapeHeartOverlay/res/values/strings.xml @@ -0,0 +1,23 @@ + + + + + Heart + +