Yeah Erel, I used just one icon.png at a time in the special directory.
I tried:
72x72
512x512
600x600
Each time the system scaled it correctly. I never had more than one icon.png in the special directory
at one time.
Next, I tried your "B4A" icon.png in the special directory and got the same thing:
Notice that the "
Messages" icon and the "
Weather" icon extend out into the
transparent border.
OK... Upon further research, I found that for new versions of Samsung's Android,
the default setting may be
Settings->Display->IconsWithBackgrounds
"Show Icons with shaded backgrounds to
make them stand out on the Home Screen
and Apps screen."
https://www.cnet.com/how-to/how-to-change-to-rounded-icons-on-the-galaxy-s7-s7-edge/
This is actually OK with me, except it makes my icon really small.
I am assuming that I need transparent corners or something to
fix this, and to have my icon extend out like the "
Messages" icon
in the above pic, with "
IconsWithBackgrounds" turned
ON
(which is the default, I think).
And further research finds this...
From what I have been able to determine using Adobe Photoshop, the checkered
gray background means "transparent". So it seems Android
MAY expand an
icon with transparent rounded corners out like I want... out into the transparent
border (like the
Messages Icon).
So... my question is...
How do you get around this "Icon Backgrounds" stuff?
Thanks in advance.
Andrew
Edit...
Well... I downloaded GIMP which does transparent areas and created a squircle.png
that had rounded transparent corners, and it did not stop Samsung's
Icon Backgrounds:
Samsung just put my squircle-with-transparent-corners inside the Android transparent border.......
(ignoring the transparent corners)
Sigh .....
And... I found this:
You can disable TouchWiz to surround your application icon in a rounded square frame by setting
<application>
......<meta-data android:name="com.samsung.android.icon_container.has_icon_container" android:value="true"/>
</application>
to your AndroidManifest.xml
Does this have anything to do with B4X?