Size of icon

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Size of icon

Post by sphere » Sat May 27, 2017 11:37 am

Hi,

anyone knows exactly how the size of the icons on Android is determined?
As not an ICO is used but PNG.

Now on one app i use a png of 90x90 which is diplayed bigger then with an PNG of 250x250 from an other app.
I know Livecode scales it down becasue the actual size is smaller.

So how is this done and how is the size determined? Why is the smaller one displayed bigger?

Thanks for any insight on this.

Cheers,
Sphere

MaxV
Posts: 1579
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: Size of icon

Post by MaxV » Mon May 29, 2017 11:49 am

Android launcher icons must be 512x512 pixel, png format. The launcher icon is resized only by the phone, not by livecode.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: Size of icon

Post by sphere » Mon May 29, 2017 2:11 pm

Gracie! MaxV

512x512 seems to be when you put it on Google Play Store.
I found some info here.
https://stackoverflow.com/questions/127 ... -icon-size
and
https://material.io/guidelines/style/ic ... duct-icons
Probably the format is in correlation with the used density dp of the used image.

Not sure yet how it works.

Thanks!

***edit*** this is a nice tool if you don't want to do it mannually using paint.net or some like it : https://romannurik.github.io/AndroidAss ... c_launcher
It does it all for you.

MaxV
Posts: 1579
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: Size of icon

Post by MaxV » Tue May 30, 2017 12:55 pm

sphere wrote: ***edit*** this is a nice tool if you don't want to do it mannually using paint.net or some like it : https://romannurik.github.io/AndroidAss ... c_launcher
It does it all for you.
Cool your link, thank you!
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply

Return to “Android Deployment”