Change launcher and shortcut icons to MaskableIconDrawable

Test: manual test on Launcher3
Bug: 33034275
Bug: 35431198

Change-Id: Ief9f49ec38ec95daa738799398fc4b458d634acc
This commit is contained in:
Hyunyoung Song
2017-02-14 10:40:58 -08:00
parent b4d6b4f7f8
commit 1f093dd94c
14 changed files with 116 additions and 52 deletions

View File

@@ -14,16 +14,19 @@
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="80dp"
android:height="80dp"
android:viewportWidth="52.0"
android:viewportHeight="52.0" >
<path
android:fillColor="#FFF5F5F5"
android:pathData="M2,26a24,24 0 1,0 48,0a24,24 0 1,0 -48,0"/>
<path
android:fillColor="@*android:color/accent_device_default_light"
android:pathData="M26.01,35.49L37.64,21c-0.45-0.34-4.93-4-11.64-4c-6.72,0-11.19,3.66-11.64,4l11.63,14.49L26,35.5L26.01,35.49z"/>
</vector>
<maskable-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/shortcut_background"/>
<foreground>
<vector
android:width="120dp"
android:height="120dp"
android:viewportWidth="78.0"
android:viewportHeight="78.0">
<group android:translateX="13.0" android:translateY="13.0">
<path
android:fillColor="@*android:color/accent_device_default_light"
android:pathData="M26.01,35.49L37.64,21c-0.45-0.34-4.93-4-11.64-4c-6.72,0-11.19,3.66-11.64,4l11.63,14.49L26,35.5L26.01,35.49z"/>
</group>
</vector>
</foreground>
</maskable-icon>