我想知道如何改变在Android工作室的启动器图标。
当前回答
打开AndroidManifest.xml,将android:icon="@mipmap/ic_launcher"修改为android:icon="@mipmap/(你的图像名)" 假设你有一个名为telugu的图像,你想把它设置为你的应用程序图标,然后改变android:icon="@mipmap/telugu",你必须复制并粘贴你的图像到mipmap文件夹,这就像我说的那样简单
其他回答
Android studio方法(适用于Android)
步骤1:
步骤2:
步骤3:
打开项目文件夹\app\src\main\res\ mimmap -mdpi\ic_launcher.png
您将看到5个mipmap文件夹。将每个mipmap文件夹中的图标替换为所需的图标。
进入AndroidManifest.xml 在标签中,寻找android:icon标签。 复制并粘贴您的图标在可绘制文件夹(可在项目的res文件夹)。 设置“android:icon tag”的值为 android:图标= " @drawable / youriconname”
瞧!你完成了。保存更改并进行测试。
以下是我认为更适合Android Studio开发者的另一个解决方案:
Expand the project root folder in the Project View Right Click on the app folder In the Context Menu go to New->Image Asset In the pop up that appears select the the new logo you would like to have(image/clip art/text). 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.
就是这样!你有一个新的标志为您的应用程序现在。
所有的下载过程太长了,只是导航到你的项目预览,选择项目视图,右键单击应用文件夹,然后单击新建,然后创建一个新的图像资产。请选择文件路径,然后单击下一步并完成。
重要的是: 重新安装应用程序。
推荐文章
- 改变开关的“开”色
- 以编程方式将EditText的输入类型从PASSWORD更改为NORMAL,反之亦然
- 如何在隐藏和查看密码之间切换
- 在Android上调整一个大的位图文件到缩放输出文件
- 如何更改Android版本和代码版本号?
- Android Studio突然无法解析符号
- 应用程序重新启动而不是恢复
- 如何设置整个应用程序在纵向模式?
- Android中文本的阴影效果?
- 以编程方式设置TextView的布局权重
- Android -如何覆盖“后退”按钮,所以它不完成()我的活动?
- 如何从通知点击发送参数到一个活动?
- 导航目标xxx对于这个NavController是未知的
- 使用ConstraintLayout均匀间距的视图
- 文件google-services错误。模块根文件夹中缺少Json。谷歌服务插件没有它就不能正常工作。