Android快捷方式图标质量低下的问题

时间:2019-03-19 08:18:09

标签: android material-design

我已经在我的应用程序中实现了快捷方式功能。但是图标看起来很丑陋,与Google日历的图标不同。 Shortcut icons 我想知道为什么,因为我已经使用svg格式的android studio转换器将图标准备为可绘制的矢量。并在此处考虑了有关此类图标的官方指南:https://commondatastorage.googleapis.com/androiddevelopers/shareables/design/app-shortcuts-design-guidelines.pdf

出于何种原因,他们编写了这样的指南,但是使用不同的规则为自己的应用准备了图标。我想念的是什么,我应该如何使它们变得更好?

想提到我在Android 8.0上有这种行为,但是图标在Android 7.1上看起来不错。

这是drawable的xml代码:

<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
        android:width="48dp"
        android:height="48dp"
        android:viewportWidth="48.0"
        android:viewportHeight="48.0">
    <path
        android:pathData="M24,24m-22,0a22,22 0,1 1,44 0a22,22 0,1 1,-44 0"
        android:fillAlpha="1"
        android:fillType="evenOdd"
        android:fillColor="#f5f5f5"/>
    <path
        android:pathData="m24.29,10.51c-0.46,-0.01 -0.92,0 -1.37,0.04l0.62,4.03c1.81,-0.08 3.93,0.42 5.48,1.41 0.24,0.15 0.48,0.33 0.71,0.5l2.84,-2.92c-0.67,-0.54 -1.47,-1.08 -2.23,-1.49 -0.43,-0.23 -1.44,-0.67 -1.91,-0.84 -1.29,-0.45 -2.74,-0.7 -4.13,-0.73zM20.37,11.01c-2.64,0.75 -4.86,2.17 -6.65,4.25 -0.42,0.49 -1.26,1.72 -1.56,2.26 -1.11,2.08 -1.68,4.3 -1.66,6.56 0.02,2.16 0.57,4.36 1.57,6.24 0.44,0.83 0.88,1.49 1.51,2.25l2.96,-2.77c-0.45,-0.59 -0.86,-1.25 -1.17,-1.94 -0.31,-0.69 -0.44,-1.1 -0.61,-1.9 -0.21,-0.97 -0.26,-1.71 -0.2,-2.63 0.24,-3.55 2.51,-6.71 5.81,-8.08 0.21,-0.09 0.47,-0.18 0.72,-0.26l-0.73,-4zM34.4,15.39 L31.55,18.32c0.63,0.84 1.14,1.8 1.47,2.83 0.17,0.52 0.39,1.67 0.42,2.19 0.11,1.8 -0.24,3.47 -1.07,5.08 -0.24,0.47 -1.01,1.56 -1.36,1.94 -1.15,1.24 -2.48,2.1 -4,2.61l0.73,3.99c0.38,-0.1 0.78,-0.23 1.12,-0.36 0.73,-0.28 1.89,-0.87 2.55,-1.32 2.69,-1.78 4.65,-4.44 5.55,-7.54 1.25,-4.27 0.26,-8.94 -2.57,-12.35zM28.37,19.13a0.44,0.44 62.67,0 0,-0.3 0.13l-9.15,9.15a0.44,0.44 0,1 0,0.62 0.62l9.15,-9.15a0.44,0.44 62.67,0 0,-0.32 -0.75zM20.74,19.16c-0.25,0 -0.51,0.05 -0.76,0.16 -0.99,0.43 -1.44,1.58 -1.01,2.57 0.43,0.99 1.58,1.44 2.57,1.01 0.99,-0.43 1.44,-1.58 1.01,-2.57 0,0 0,-0 0,-0 -0.32,-0.74 -1.05,-1.18 -1.81,-1.17zM26.82,25.24c-0.25,0 -0.51,0.05 -0.76,0.16 -0.99,0.43 -1.44,1.58 -1.01,2.57a0.21,0.21 121.43,0 0,0 0c0.43,0.99 1.58,1.44 2.57,1.01 0.99,-0.43 1.44,-1.58 1.01,-2.57 -0.32,-0.74 -1.05,-1.18 -1.81,-1.17zM18.26,31.6 L15.42,34.41c2.76,2.27 6.25,3.35 9.79,3.03L24.55,33.43C22.34,33.53 20.01,32.88 18.26,31.6Z"
        android:fillAlpha="1"
        android:fillType="nonZero"
        android:fillColor="#6d5399"/>
</vector>

0 个答案:

没有答案