To add an app icon in Android Studio, follow these steps:
1. **Prepare Your Icon**: Create your icon image in multiple sizes to ensure it looks good on different devices. Common sizes include:
48x48 pixels (mdpi)
72x72 pixels (hdpi)
96x96 pixels (xhdpi)
144x144 pixels (xxhdpi)
192x192 pixels (xxxhdpi)
2. **Use the Image Asset Tool**:
In **Android Studio**, go to **File / New / Image Asset**.
In the *Asset Type* dropdown, select **Launcher Icons (Adaptive and Legacy)**.
*Select your image* by choosing *Image* in the *Foreground Layer* and uploading your icon file. You can adjust scaling and padding to fit your design.
3. **Configure Adaptive and Legacy Icons**:
Android Studio lets you create adaptive icons that work with newer Android versions.
You can customize foreground and background layers, or opt to use only the legacy icon.
Click *Next* once you’re satisfied.
4. **Save and Finish**:
Choose the directory where you want to save the icon resources (default is `res/mipmap`), then click **Finish**.
Android Studio will generate the necessary icons for different screen densities and place them in the respective `mipmap-` folders.
5. **Set the Icon in the Manifest**:
Open `AndroidManifest.xml` and make sure your icon is set with the following line inside the application tag:
```xml
android:icon="@mipmap/ic_launcher"
```
6. **Build and Run**:
Build and run your app to ensure that the new icon is displayed.
By following these steps, your app icon should be properly set up and displayed across different devices and resolutions.
/ @androidustaad
#AndroidDevelopment
#AppDesign
#MobileAppDesign
#UIUX
#AndroidUI
#UserExperience
#UserInterface
#Kotlin
#Java
#MaterialDesign
#ResponsiveDesign
#AppPrototyping
#DesignThinking
#UserResearch
#Wireframing
#InteractionDesign
#AppArchitecture
#VisualDesign
#Coding
#AndroidStudio
#androidustaad