Как изменить иконку приложения на андроид студио

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

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

Josh Correia's user avatar

Josh Correia

3,3773 gold badges29 silver badges46 bronze badges

asked Oct 28, 2014 at 18:33

user3535901's user avatar

4

Here is another solution which I feel is more sensible for those working on Android Studio:

  1. Expand the project root folder in the Project View
  2. Right Click on the app folder
  3. In the Context Menu go to New->Image Asset
  4. In the pop up that appears select the the new logo you would like to have(image/clip art/text).
  5. If you were selecting the image radio button (as is the default choice), if you clicked on the 3-buttons to show the path tree to locate your .png image file, most probably you might not be seeing it, so drag it from the Windows Explorer (if Windows) and drop it in the tree, and it will appear and ready for being selected.

That is it! You have a new logo for you app now.

YoussefDir's user avatar

YoussefDir

2871 gold badge3 silver badges16 bronze badges

answered Feb 20, 2015 at 10:37

Coder X's user avatar

Coder XCoder X

4,4822 gold badges15 silver badges9 bronze badges

6

Look in the application’s AndroidManifest.xml file for the <application> tag.

This application tag has an android:icon attribute, which is usually @drawable/ic_launcher.
The value here is the name of the launcher icon file. If the value is @drawable/ic_launcher, then the name of the icon is ic_launcher.png.

Find this icon in your resource folders (res/mipmap-mdpi, res/mipmap-hdpi, etc.) and replace it.

A note on mipmap resources: If your launcher icon is currently in drawable folders such as res/drawable-hdpi, you should move them to the mipmap equivalents (e.g. res/mipmap-hdpi). Android will better preserve the resolution of drawables in the mipmap folder for display in launcher applications.

Android Studio note: If you are using Android Studio you can let studio place the drawables in the correct place for you. Simply right click on your application module and click New -> Image Asset.

For the icon type select either «Launcher Icons (Legacy Only)» for flat PNG files or «Launcher Icons (Adaptive and Legacy)» if you also want to generate an adaptive icon for API 26+ devices.

answered Oct 28, 2014 at 18:36

Bryan Herbst's user avatar

Bryan HerbstBryan Herbst

66.1k10 gold badges132 silver badges118 bronze badges

4

Here are my steps for the task:

  1. Create PNG image file of size 512×512 pixels
  2. In Android Studio, in project view, highlight a mipmap directory
  3. In menu, go to File>New>Image Asset
  4. Click Image Button in Asset type button row
  5. Click on 3 Dot Box at right of Path Box.
  6. Drag image to source asset box
  7. Click Next (Note: Existing launcher files will be overwritten)
  8. Click Finish

KernelPanic's user avatar

KernelPanic

2,4767 gold badges45 silver badges87 bronze badges

answered Jan 7, 2017 at 5:08

Mtn Pete's user avatar

Mtn PeteMtn Pete

1,0811 gold badge7 silver badges2 bronze badges

2

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>appsrcmainres

Pang's user avatar

Pang

9,365146 gold badges85 silver badges121 bronze badges

answered Sep 6, 2015 at 1:16

Robbie's user avatar

RobbieRobbie

3913 silver badges4 bronze badges

Try this process, this may help you.

  1. Create PNG image file of size 512×512 pixels
  2. In menu, go to File -> New -> Image Asset
  3. Select Image option in Asset type options
  4. Click on Directory Box at right.
  5. Drag image to source asset box
  6. Click Next (Note: Existing launcher files will be overwritten)
  7. Click Finish

***** NB: Icon type should be Launcher Icons (Adaptive and Legacy) *****

answered Jul 7, 2019 at 8:06

Md. Rejaul Karim's user avatar

1

enter image description herego to AndroidManifest.xml and change the android:icon=»@mipmap/ic_launcher» to android:icon=»@mipmap/(your image name)»
suppose you have a image named telugu and you want it to be set as your app icon then change android:icon=»@mipmap/telugu» and you have to copy and paste your image into mipmap folder thats it its so simple as i said

answered Sep 16, 2016 at 19:08

korubilli krishna chaitanya's user avatar

0

Android studio method (For android)

STEP 1:

enter image description here

STEP 2:

enter image description here

STEP 3:

enter image description here

answered May 27, 2021 at 16:52

Nismi Mohamed's user avatar

3

  1. Go to AndroidManifest.xml

  2. In the tag, look for android:icon tag.

  3. Copy and paste your icon in drawable folder(available in res folder of your project).

  4. Set the value of android:icon tag as

    android:icon=»@drawable/youriconname»

Voila! you are done. Save the changes and test.

answered Dec 26, 2017 at 11:49

Palak Jain's user avatar

Palak JainPalak Jain

6546 silver badges19 bronze badges

2

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.

answered Oct 28, 2014 at 18:35

berserk's user avatar

berserkberserk

2,6903 gold badges31 silver badges63 bronze badges

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

android:icon="@drawable/logo"

Pang's user avatar

Pang

9,365146 gold badges85 silver badges121 bronze badges

answered Mar 20, 2016 at 14:53

sameer's user avatar

sameersameer

4334 silver badges9 bronze badges

Go to your project folderappsrcmainresmipmap-mdpiic_launcher.png

You will see 5 mipmap folders. Replace the icon inside of the each mipmap folder, with the icon you want.

answered Nov 16, 2017 at 17:33

Linoie's user avatar

LinoieLinoie

391 silver badge9 bronze badges

0

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!

answered Aug 11, 2018 at 6:42

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

Acapulco's user avatar

Acapulco

3,2938 gold badges37 silver badges50 bronze badges

answered Sep 23, 2019 at 13:53

Kingsley Joel's user avatar

To change your app icon go to your res directory and right click on mipmap folder, Click on New > Image Asset. By clicking on Image Asset from the menu an Asset Studio dialogue will be opened, From Source Asset portion select Asset type Image and from path select your desired image and click on Next button and at last click on Finish to change your icon.

answered Apr 14, 2021 at 7:23

Elizabeth Harper's user avatar

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"

Acapulco's user avatar

Acapulco

3,2938 gold badges37 silver badges50 bronze badges

answered Nov 16, 2018 at 2:59

fMadTech's user avatar

fMadTechfMadTech

2783 silver badges5 bronze badges

All the download process is too long, just navigate to your project preview and select project view, right click on app folder, then click on new, then create a new image asset. Kindly choose the file path and click next and finish.

important:
Reinstall your app.

ChristianYami's user avatar

answered Nov 13, 2018 at 20:02

Michael Leonard 's user avatar

Can I use this guide to change flutter android app icon for my app ? or How to change flutter app icon ?

YES, using this guide you can also change flutter app launcher icon.

Create App Icon using a Custom Image

Using this guide you can create android app icon from images designed by you.

Note : Supported image format for creating app icon for android app — 

  • PNG (Recommended)
  • JPG (Acceptable)
  • GIF (Not Recommended)

Recommended image specification — 512 x 512 pixel png image

step 1 : Open your android app project using android studio

step 2 : In the Project window , Navigate to android => src => main => res folder

Android Studio - RES Folder
Android Studio — RES Folder

step 3 : Right click res folder => Select New > Image Asset

Android Studio - Image Asset
Android Studio — Image Asset

step 4 : In Icon Type field ,Select Launcher icons (Adaptive and Legacy)

Note : If your app supports Android 8.0 or higher create adaptive and legacy icons.

If your app supports version no higher than Android 7.1 , create a legacy launcher icon only.

Android Studio - Icon Type
Android Studio — Icon Type

step 5 : In Foreground Layer tab, select Asset type as Image and  browse your png or jpg image file and specify the path to your image file

Android Studio - Image Asset
Android Studio — Image Asset

step 6 : In Background layer tab — keep default settings

Android Studio - Background Layer Tab
Android Studio — Background Layer Tab

step 7 : In Legacy tab — keep default settings , change only if you require some different icon shapes

Android Studio - Legacy Tab
Android Studio — Legacy Tab

step 8 : Resize your design using resize slider so that contents of logo are inside the safe zone border

Android Studio - Resize Slider
Android Studio — Resize Slider
Android Studio - Safe Zone
Android Studio — Safe Zone

step 9 : Click Next , Hit Finish

Confirm Icon Path
Confirm Icon Path
Android App Icon - Image
Android App Icon — Image

Create App Icon using Text strings

Open Image Asset Studio (same as above step 1, 2, 3 and 4).

We can type text string in different fonts and use the text string as icon.

Image Asset Studio converts text based icon into png files for different densities

step 1 : In Foreground Layer tab , select Asset type as Text

  • enter the text you want to display
  • select the font from drop-down menu
  • select the color of the font
Android Studio - Text Asset
Android Studio — Text Asset

step 2 :  In Background layer tab — select Asset type as color and select a color which improves the text readability

Android Studio - Text Background Layer
Android Studio — Text Background Layer

step 3 : In Legacy tab — keep default settings , change only if you require some different icon shapes

Android Studio - Text Legacy Tab
Android Studio — Text Legacy Tab

step 4 : Resize your design using resize slider so that contents of logo are inside the safe zone border

Android Studio - Text Resize
Android Studio — Text Resize

step 5 : Click Next , Hit Finish

Confirm Text Icon Path
Confirm Text Icon Path
Android App Icon - Text
Android App Icon — Text

Create App Icon using Clip Art 

Open Image Asset Studio 

step 1 : In Foreground Layer tab , select Asset type as Clip Art

  •  select the clip art icon
  •  select the color of the icon
Asset Type - Clip Art
Asset Type — Clip Art
Select Icon
Select Icon

step 2 :  In Background layer tab — select Asset type as color and select a color which makes the icon stand out.

step 3 : In Legacy tab — keep default settings 

step 4 : Resize your design using resize slider so that contents of logo are inside the safe zone border

step 5 : Click Next , Hit Finish

Android App Icon - Clip Art
Android App Icon — Clip Art

Clip Art — Image Assets studio allows us to import Google material icons in Vector Draw-able and png format

Useful Resources — Android Developer Docs

This article help android developers to create or change android app icon using Android Studio.

<application
    android:allowBackup="true"
    android:icon="@drawable/icon"
    android:label="@string/app_name"
    android:logo="@drawable/logo"
    android:theme="@style/AppTheme" >

This is my androidmanifest.xml

and in mainactivity.java i use this lines to show logo in action bar.

getSupportActionBar().setDisplayShowHomeEnabled(true);
getSupportActionBar().setIcon(R.drawable.logo);

after using this two lines in .java file my logo is showing in the display but the app label is gone….
is their any method by which logo & app label both will shown in actionbar after compiling apk.

asked Apr 23, 2015 at 15:01

user4824797's user avatar

2

You not need the two lines in mainactivity.java, you have to select a Theme with the ActionBar:

From res>layout>activity_main.xml(or whatever is the name of the layout of your activity): in the «Design» tab change the theme in «Holo.Light.DarkActionBar» for example.

Or from the AndroidManifest.xml in your app add (or change):

android:theme="@style/AppTheme"

where «AppTheme» is defined in res>values>styles.xml as:

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"></style>

Of course in your manifest you have to define the name and logo in the <application> level:

<application
  android:logo="@drawable/logo"
  android:label="@string/app_name"
  android:theme="@style/AppTheme"
...

answered Nov 10, 2015 at 2:02

Sara's user avatar

SaraSara

1,82422 silver badges18 bronze badges

Add this into your Activity in manifest.

<activity
        android:name=".MainActivity"
        android:label="@string/app_name"
</activity>

answered Apr 23, 2015 at 15:42

Akshay Shinde's user avatar

copy your image file and paste it to the res->minmap folder and then goto your AndroidManifest file and locate the below option

android:icon=»@mipmap/image_file_name»

give your icon image file name name here (image_file_name) then run your app.

answered Aug 2, 2021 at 6:06

Kalyan Mishra's user avatar

<application
    android:allowBackup="true"
    android:icon="@drawable/icon"
    android:label="@string/app_name"
    android:logo="@drawable/logo"
    android:theme="@style/AppTheme" >

This is my androidmanifest.xml

and in mainactivity.java i use this lines to show logo in action bar.

getSupportActionBar().setDisplayShowHomeEnabled(true);
getSupportActionBar().setIcon(R.drawable.logo);

after using this two lines in .java file my logo is showing in the display but the app label is gone….
is their any method by which logo & app label both will shown in actionbar after compiling apk.

asked Apr 23, 2015 at 15:01

user4824797's user avatar

2

You not need the two lines in mainactivity.java, you have to select a Theme with the ActionBar:

From res>layout>activity_main.xml(or whatever is the name of the layout of your activity): in the «Design» tab change the theme in «Holo.Light.DarkActionBar» for example.

Or from the AndroidManifest.xml in your app add (or change):

android:theme="@style/AppTheme"

where «AppTheme» is defined in res>values>styles.xml as:

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"></style>

Of course in your manifest you have to define the name and logo in the <application> level:

<application
  android:logo="@drawable/logo"
  android:label="@string/app_name"
  android:theme="@style/AppTheme"
...

answered Nov 10, 2015 at 2:02

Sara's user avatar

SaraSara

1,82422 silver badges18 bronze badges

Add this into your Activity in manifest.

<activity
        android:name=".MainActivity"
        android:label="@string/app_name"
</activity>

answered Apr 23, 2015 at 15:42

Akshay Shinde's user avatar

copy your image file and paste it to the res->minmap folder and then goto your AndroidManifest file and locate the below option

android:icon=»@mipmap/image_file_name»

give your icon image file name name here (image_file_name) then run your app.

answered Aug 2, 2021 at 6:06

Kalyan Mishra's user avatar

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Как изменить иконку внешнего жесткого диска
  • Как изменить иконку приложения на андроид самсунг а51
  • Как изменить иконку вконтакте на андроид
  • Как изменить иконку приложения на андроид самсунг а 12
  • Как изменить иконку приложения на андроид редми

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии