How To Setup App icon in Android Studio
📱 How To Set Up an App Icon in Android Studio (Complete Guide)
Setting up an app icon is one of the most important steps in Android app development. A well-designed icon improves visibility, branding, and user engagement. In this guide, you’ll learn everything from basic setup to advanced techniques used by professional developers.
🧠 1. Understanding Android App Icons
Android uses adaptive icons, introduced in Android 8.0 (API level 26), which consist of:
🔹 Two Layers:
Foreground Layer → Main icon design (logo, symbol)
Background Layer → Shape or color background
Watch video:
🔹 Why Adaptive Icons?
Automatically adjust to different shapes (circle, square, squircle)
Work better across different devices and launchers
Support animations and visual effects
Recommended App:
Temp Mail Service – Temporary Email

📁 2. Icon File Structure in Android
Icons are stored inside:
res/
└── mipmap/
├── mipmap-mdpi
├── mipmap-hdpi
├── mipmap-xhdpi
├── mipmap-xxhdpi
└── mipmap-xxxhdpi
📌 Important:
Always store launcher icons in mipmap folders, not drawable
This ensures better performance and scaling
⚙️ 3. Method 1: Using Image Asset Studio (Recommended)
This is the easiest and most professional way.
🪜 Steps:
Step 1:
Right-click:
res → New → Image Asset
Step 2:
Select:
Icon Type → Launcher Icons (Adaptive and Legacy)
Step 3:
Choose Asset Type:
Image
Clip Art
Text
Step 4:
Upload your icon (PNG recommended)
Step 5:
Customize:
Foreground scaling
Background color
Shape preview (circle, square)
Step 6:
Click:
Next → Finish
📦 Output Generated
Android Studio automatically creates:
mipmap-anydpi-v26/ic_launcher.xml
mipmap-*/ic_launcher.png
mipmap-*/ic_launcher_round.png
🔧 4. Method 2: Manual Icon Setup (Advanced)
If you want full control:
🪜 Steps:
1. Prepare icon sizes:
Density
Size
mdpi
48×48
hdpi
72×72
xhdpi
96×96
xxhdpi
144×144
xxxhdpi
192×192
2. Place icons manually:
mipmap-mdpi/ic_launcher.png
mipmap-hdpi/ic_launcher.png
…
3. Update AndroidManifest.xml:
XML
<application
android:icon=”@mipmap/ic_launcher”
android:roundIcon=”@mipmap/ic_launcher_round”
… >
</application>
🎨 5. Creating Adaptive Icons Manually (Pro Level)
Create XML:
res/mipmap-anydpi-v26/ic_launcher.xml
Example:
XML
<adaptive-icon xmlns:android=”http://schemas.android.com/apk/res/android”>
<background android:drawable=”@color/icon_bg”/>
<foreground android:drawable=”@drawable/icon_fg”/>
</adaptive-icon>
🖌️ 6. Design Guidelines (Very Important)
✅ Best Practices:
Use simple shapes
Keep icon centered
Avoid too much text
Maintain high contrast
Use vector graphics (SVG) if possible
❌ Avoid:
Complex details
Thin lines
Low resolution images
📐 7. Safe Zone & Masking
Android launchers apply masks (circle, squircle, etc.)
🔹 Safe Zone Rule:
Keep important content within 72×72 dp
Outer edges may be clipped
🚀 8. Advanced Tips for Professional Apps
🔥 1. Use Vector Assets
Smaller APK size
Scales perfectly
🔥 2. Dark Mode Support
Use adaptive background colors
Provide contrast-friendly icons
🔥 3. Dynamic Icons (Android 13+)
Support themed icons
Add monochrome version:
XML
<monochrome android:drawable=”@drawable/icon_mono”/>
🧪 9. Testing Your Icon
Test on:
Different devices
Different launchers
Light/Dark modes
Use Emulator:
AVD Manager → Run multiple devices
🛠️ 10. Common Errors & Fixes
Problem
Solution
Icon blurry
Use high resolution
Icon cropped
Adjust safe zone
Not updating
Clean & rebuild project
Missing round icon
Add roundIcon
📊 11. Icon Optimization for Play Store
🔹 Play Store Icon Requirements:
Size: 512 x 512 px
Format: PNG
No transparency (recommended)
🔹 Tips:
Bright colors = more clicks
Unique design = better branding
🎯 Conclusion
Setting up an app icon in Android Studio isn’t just about adding an image—it’s about branding, usability, and compatibility across devices.
✔️ Best Method:
👉 Use Image Asset Studio + Adaptive Icons
✔️ For Experts:
👉 Create custom XML adaptive icons + vector assets