[英]Android Studio - Configure image asset
Android 8.0 (API level 26) introduces adaptive launcher icons, which can display a variety of shapes across different device models.
Android 8.0(API 级别 26)引入了自适应启动器图标,可以在不同的设备型号上显示各种形状。 For example, an adaptive launcher icon can display a circular shape on one OEM device, and display a
squircle
on another device.例如,自适应启动器图标可以在一个 OEM 设备上显示
squircle
,而在另一台设备上显示一个squircle
。 Each device OEM provides a mask, which the system then uses to render all adaptive icons with the same shape.每个设备 OEM 都提供一个蒙版,然后系统使用它来呈现具有相同形状的所有自适应图标。 Adaptive launcher icons are also used in shortcuts, the Settings app, sharing dialogs, and the overview screen.
自适应启动器图标也用于快捷方式、设置应用程序、共享对话框和概览屏幕。
Unlike the png file that you can visibly see its shape, the foreground layer file (ic_***_foreground.xml) is intrepreted as circle
or squircle
based on the mask provide by the device you are viewing it from.不同于PNG文件,可以明显地看到它的形状,所述前景层文件(IC _ *** _ foreground.xml)被intrepreted为
circle
或squircle
基于掩模由正在从观看它的设备提供。 Hence you can say the file is both your squircle and rounded squares
.因此,您可以说该文件既是您的
squircle and rounded squares
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.