From c924edf315ddf0a107fdaa754e4b1fb8ce92d4d4 Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Wed, 26 Feb 2020 14:17:21 -0800 Subject: [PATCH] Add Hexagon (Victor) shape to icon shape overlay (will show up in custom options) https://screenshot.googleplex.com/4Ta8OOrfJpV Bug: 150234338 Test: installed the apk and then changed it in custom style options $ adb install out/target/product/generic/system/product/overlay/IconShapeHexagon/IconShapeHexagonOverlay.apk Change-Id: I9f0848d772bdaaacaa6cc2e30bc6e992f323f974 --- .../IconShapeHexagonOverlay/Android.mk | 29 +++++++++++++++++++ .../AndroidManifest.xml | 27 +++++++++++++++++ .../res/values/config.xml | 27 +++++++++++++++++ .../res/values/strings.xml | 20 +++++++++++++ 4 files changed, 103 insertions(+) create mode 100644 packages/overlays/IconShapeHexagonOverlay/Android.mk create mode 100644 packages/overlays/IconShapeHexagonOverlay/AndroidManifest.xml create mode 100644 packages/overlays/IconShapeHexagonOverlay/res/values/config.xml create mode 100644 packages/overlays/IconShapeHexagonOverlay/res/values/strings.xml diff --git a/packages/overlays/IconShapeHexagonOverlay/Android.mk b/packages/overlays/IconShapeHexagonOverlay/Android.mk new file mode 100644 index 0000000000000..16ef3995dedde --- /dev/null +++ b/packages/overlays/IconShapeHexagonOverlay/Android.mk @@ -0,0 +1,29 @@ +# +# Copyright 2020, 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 := IconShapeHexagon + +LOCAL_PRODUCT_MODULE := true + +LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res + +LOCAL_PACKAGE_NAME := IconShapeHexagonOverlay +LOCAL_SDK_VERSION := current + +include $(BUILD_RRO_PACKAGE) diff --git a/packages/overlays/IconShapeHexagonOverlay/AndroidManifest.xml b/packages/overlays/IconShapeHexagonOverlay/AndroidManifest.xml new file mode 100644 index 0000000000000..bf408fd625690 --- /dev/null +++ b/packages/overlays/IconShapeHexagonOverlay/AndroidManifest.xml @@ -0,0 +1,27 @@ + + + + + + + diff --git a/packages/overlays/IconShapeHexagonOverlay/res/values/config.xml b/packages/overlays/IconShapeHexagonOverlay/res/values/config.xml new file mode 100644 index 0000000000000..f7cb5951b4f15 --- /dev/null +++ b/packages/overlays/IconShapeHexagonOverlay/res/values/config.xml @@ -0,0 +1,27 @@ + + + + + "M12,0 88,0 100,50 88,100 12,100 0,50 12,0 Z" + + false + + 0dp + + 0dp + + diff --git a/packages/overlays/IconShapeHexagonOverlay/res/values/strings.xml b/packages/overlays/IconShapeHexagonOverlay/res/values/strings.xml new file mode 100644 index 0000000000000..e00dc9d938ec7 --- /dev/null +++ b/packages/overlays/IconShapeHexagonOverlay/res/values/strings.xml @@ -0,0 +1,20 @@ + + + + Hexagon + +