There is something very fundamental I’m not understanding about how icons are rendered in this launcher.

There is something very fundamental I’m not understanding about how icons are rendered in this launcher. Using the geometry editor, you can see the item is 200×200, scale is 1. And the blue box is (correctly) being drawn at precisely that size. The icon Scale and inner scale are set to 100%, and all padding is set to 0. However when I choose a 200×200 .png image as my icon, it’s getting downscaled and drawn small in the middle. I very much would expect it to fill the blue box in its entirety. What am I missing? Even if I pick a big picture (like a 1080×1920 screenshot) it gets drawn tiny with lots of blank padding around it. Why is it getting scaled at all?

8 Commentsto There is something very fundamental I’m not understanding about how icons are rendered in this launcher.

  1. BrandonF says:

    YES! Exactly why I came here, to ask the same question. The whole area is clickable as far as I’ve found. There’s got to be a simple solution we’re missing?

  2. BrandonF says:

    Can’t do it man. Deal breaker. Hopefully will be implemented in an update. Makes no sense to me.

  3. Zachary Vogt says:

    Brandon F, After more experimentation, I’ve found I can achieve my goal by setting the icon to nothing, and setting the background image of the Box itself to the image I want. The background on the box tab will stretch with the size and shape of the box.

  4. Icon size is computed according to rules given by the Android framework. Specifically the platform indicates which icon “resolution” should be used. Lightning then load the appropriate icon (each icon may be present in several resolutions in the app in order to target different screens). The launcher then displays this icon in the box allocated for the item. The box is generally a cell in the grid, and usually the cell is larger than the icon, fortunately. If you detach the item from the grid, it will keep the exact same area. When you scale the item, everything in it is scaled: so the margin/icon ratio stays the same. However if you resize the item’s area, then you will be able to make its area match the icon size. Notice the difference between scale and resize (different handles icons).

    The background will match exactly the item’s background of course, but you will have to make sure the item’s ratio is preserved. Just resize the item’s area before to scale it.

  5. Zachary Vogt says:

    Got it. So in my particular case Android determines the appropriate icon size is 108×108 (I’m assuming that small size is based primarily on the intentional non-standard DPI in my build.prop) So if I choose an icon scale of 185%, that brings it back up to 200×200. One more technical question. If I choose a 200×200 .png file as my icon source, does it calculate the target size first and display the source pixel-for-pixel, or does it first downscale to 108, then scale that result a second time back up to 200? Thanks.

  6. BrandonF says:

    Zachary Vogt OK I’ll try this. I’m not sure I quite get it but I’ll play with it till I get right. Need to read these comments 4 or 5 more times, just woke up lol.

  7. Zachary Vogt icons are resized to match the computed size before to be stored. The target size does include the icon scale setting, but does not take care of the item scale.

  8. Zachary Vogt says:

    Pierre Hébert, thanks for the reply.

Leave a Reply

Your email address will not be published. Required fields are marked *