Screenshot_20100101-014647.png
这个选项在开发者模式打开后,会显示出来。
想要默认显示出来
在alps\packages\apps\Launcher3\src\com\android\launcher3\graphics\IconShapeOverride.java
中的isSupported()方法中添加
public static boolean isSupported(Context context) {
//wy add:
if (context != null) {
return true;
}//wy
就可以实现。
如果想要修改默认的形状在IconShapeOverride.java中的
private static String getAppliedValue(Context context) {
return getDevicePrefs(context).getString(KEY_PREFERENCE, "M50 0A50 50,0,1,1,50 100A50 50,0,1,1,50 0");//wy
}
方法中修改。
根据config.xml中的值
<string-array translatable="false" name="icon_shape_override_paths_values">
<item></item>
<item>M50,0L100,0 100,100 0,100 0,0z</item>
<item>M50,0 C10,0 0,10 0,50 0,90 10,100 50,100 90,100 100,90 100,50 100,10 90,0 50,0 Z</item>
<item>M50 0A50 50,0,1,1,50 100A50 50,0,1,1,50 0</item>
<item>M50,0A50,50,0,0 1 100,50 L100,85 A15,15,0,0 1 85,100 L50,100 A50,50,0,0 1 50,0z</item>
</string-array>
<string-array translatable="false" name="icon_shape_override_paths_names">
<!-- Option to not change the icon shape on home screen. [CHAR LIMIT=50] -->
<item>@string/icon_shape_system_default</item>
<item>@string/icon_shape_square</item>
<item>@string/icon_shape_squircle</item>
<item>@string/icon_shape_circle</item>
<item>@string/icon_shape_teardrop</item>
</string-array>
可修改默认想要的形状。