How to customize the launcher icon using Image Assets in Android Studio?

Android Studio ships with a useful tool to generate image assets. The Asset Studio can be used to create a launcher icon for different screen sizes with or without backgrounds. This tool will help you generate the icons in the standardized format. Follow the steps below to get started with the Asset Studio:

  1. Select the app folder and then click on File->New->Image Assets to launch the Asset Studio in Android Studio.
  2. In the Configure Image Assets window, you can choose an image, a clipart or type text for your icon.
  3. For a simple icon, we shall choose clip art as asset type and click on the clip art icon. This launches the Select Icon dialog.
  4. After selecting an icon from the dialog, you can choose the foreground & background color, padding and scaling. You can also choose a shape:
      • None
      • Square
      • Circle
      • Vertical (Rectangle)
      • Horizontal (Rectangle)

    And finally, you can choose to have a Dog Ear effect on the icon.

  5. After you edit the options and are happy with the preview, click on Next.
  6. The new window will show you the preview of the icons in different sizes. Click on Finish and the default ic_launcher.png will be replaced with the new one.

You can use the Asset Studio to create notification and action bar icons for your app. The best thing about the Asset studio is that it generates icons for all the different screen sizes (mdpi, hdpi, xhdpi, etc.).