ahmed.hany

Adaptive Icons for MAS

0 votes

Dear team,

Anyone knows how to make the app icons for android to be adaptive? (i.e., no white-spaces around it even if the user changes the "Icon Shape" from developer options like from "Device Default" to "Square" or "Squircle")

 

Thanks


Reply to: Adaptive Icons for MAS

0 votes

 When I checked the file below, I found an answer.

\android-sdk-windows\platforms\android-O\data\res\drawable\sym_def_app_icon.xml <?<?*?encoding="utf-8" xml version="1.0">>The xmlns:android attribute specifies that the icon should display as such: <background android:drawable="@android:color/white" /> <foreground android:drawable="@mipmap/sym_def_app_icon_maskable" /> </adaptive-icon> Which is ultimately right I don't know. Adaptive-icon tag seems to work correctly for now (preview 1).


Reply to: Adaptive Icons for MAS

0 votes

Android 8.0 (API level 26) introduces adaptive launcher icons, which can display a variety of shapes across different device models. For example, an adaptive launcher icon can display a circular shape on one OEM device, and display a squircle on another device. Each device OEM provides a mask, which the system then uses to render all adaptive icons with the same shape. Adaptive launcher icons are also used in shortcuts, the Settings app, sharing dialogs, and the overview screen. RapidFS


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off