How do you change the launcher logo of an app in Android Studio?

前端 未结 14 1463
别那么骄傲
别那么骄傲 2020-11-28 17:50

I was wondering how to change the launcher icon in Android Studio.

相关标签:
14条回答
  • 2020-11-28 17:59

    We can replace the code in the AndroidManifest file in the application tag

    android:icon="@drawable/logo"
    
    0 讨论(0)
  • 2020-11-28 18:06

    Click app/manifests/AndroidManifest.xml You see android:icon="@mipmap/your image name"

    Also change android:roundicon="@mipmap/your image name" Example: android:icon="@mipmap/image" that's all

    0 讨论(0)
  • 2020-11-28 18:10

    I created my icons using this tool:

    https://romannurik.github.io/AndroidAssetStudio/index.html

    After I downloaded these (they were already pre named to ic_launcher, very useful!) I found the

    mipmap ic_launcher folder under the res folder

    and I replaced the pre icons with the ones I created. Reinstall your app, and you'll see your new icon!

    0 讨论(0)
  • 2020-11-28 18:10

    Go to:

    res > drawable > right click > show in folder > add desired logo

    Then go to android manifest, edit ICON tag under application tag, use "@drawable/nameOfImage"

    0 讨论(0)
  • 2020-11-28 18:12

    To quickly create a new set of icons and change the launcher icon in Android Studio, you can:

    1. Use this tool: https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html to upload your preferred image or icon (your source file). The tool then automatically creates a set of icons in all the different resolutions for the ic_launcher.png.

    2. Download the zip-file created by the tool, extract everything (which will create a folder structure for all the different resolutions) and then replace all the icons inside your project res folder: <AndroidStudioProjectPath>\app\src\main\res

    0 讨论(0)
  • 2020-11-28 18:13

    In the manifest file, under the tag, there will be a similar line:

    android:icon="drawable_resource_path"
    

    Place the launcher icon you want in drawable folder and write its resource path.

    0 讨论(0)
提交回复
热议问题