Android Studio进行APP图标更改的两种方式总结

Android Studio进行APP图标更改的两种方式总结
=================================================
https://www.yii666.com/blog/229533.html
=================================================
1. /home/du1/asProjs/sma/app/src/main/res/drawable/ 放入appicon.png 文件名全部小写
在AndroidManifest.xml文件中,找到android:icon以及android:roundIcon这两个属性,设置为你放入的图标文件
即:将
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
改为
android:icon="@drawable/appicon"
android:roundIcon="@drawable/appicon"

=================================================
2.
=================================================
File -> New -> Image Asset
Name: ic_launcher -> ic_launcher_sma
Source Asset: sel Text
Color: 3B4991
Resize: text size fit the circle

-> Next
Res Directory: main
-> Finsh

--------------------------------------------
在AndroidManifest.xml文件中,找到android:icon以及android:roundIcon这两个属性,设置为你放入的图标文件
即:将
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
改为
android:icon="@mipmap/ic_launcher_sma"
android:roundIcon="@mipmap/ic_launcher_sma_round"

 

posted @   CNZZG  阅读(1364)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示