Git Product home page Git Product logo

launcher-icon's Introduction

Bertha, a launcher icon sample

Bertha is a simple demo project that showcases how to set up Android launcher icons and shortcuts, for all versions of Android up to O (8.0.0, API 26) included.

This showcases:

  • "Legacy" launcher icons for Android versions up to 7.0 Nougat (API 24)
    • These icons can have a background, but in this case, they don't, as most apps from that era didn't
      (unless they had lazy designers or logos that had a background)
    • Must use PNGs as vector drawables and WEBP images were not supported for launcher icons
  • Round launcher icons for Android 7.1 Nougat (API 25)
    • Originally used in the Pixel launcher to have visual coherency
    • Replaced by Adaptive Icons in Android O (see next bullet point)
    • Must use PNGs as vector drawables and WEBP images were not supported for launcher icons
  • Adaptive Icons for Android 8.0 O (API 26) and later
    • Can use vector drawables (finally)
    • Different canvas size, 108dp, with a 72dp visible area
    • Safe area is actually a circle with a 66dp diameter, not a square
    • Composed of background and foreground layers, mask is provided by the launcher
    • Can be animated (but aren't yet as of Android O Developer Preview 3)
  • Launcher shortcuts for Android 7.1 Nougat (API 25) and later
    • Accessed via long-press or other gestures
    • Useful for deeplinks (in this case, they set the image in the app)
    • Not demoed here are dynamic shortcuts, only the static shortcuts

Screenshots

API < 25 API 25 API 26+
Launcher icon on API pre-25 Launcher icon on API 25 Launcher icon on API 26+
API 25 API 26+ Demo (API 26)
Shortcuts on API 25 Shortcuts on API 26+ Demo on API 26

Credits and licence

The code is licenced under the Apache License 2.0, see the LICENSE file. The icons used are based on a free vector design from Freepik.

launcher-icon's People

Contributors

nickbutcher avatar rock3r avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.