美文网首页
flutter icon+launch

flutter icon+launch

作者: tongyuling | 来源:发表于2021-07-13 18:45 被阅读0次

在Android Studio上修改icon与launch

一、iOS:
Launch:

1、先找到Launch路径:ios/Runner/Assets.xcassets/LaunchImage.imageset
2、替换自己的启动图,并修改Contents.json


Icon:

1、先找到Launch路径:ios/Runner/Assets.xcassets/AppIcon.appiconset
2、替换自己的icon,并修改Contents.json
*通常我都是打开xocde在Assets.xcassets里修改AppIcon


二、Android:
Launch:

1、先找到Launch路径:android/app/src/main/res/drawable找到launch_background.xml文件
2、把<item>注释放开,文件里的android:src="@mipmap/launch_image"说明启动图的名称为launch_image,也可以自己更换
3、在mipmap文件中添加名为launch_image的启动图


Icon:

1、先找到Launch路径:android/app/src/main找到AndroidManifest.xml文件
2、文件里android:icon="@mipmap/ic_launcher">的ic_launcher为icon的名称
3、顺便改个app名:android:label="app名"
4、在mipmap文件中添加名为ic_launcher的icon图


Android尺寸如下:
launch+icon尺寸

相关文章

网友评论

      本文标题:flutter icon+launch

      本文链接:https://www.haomeiwen.com/subject/guuspltx.html