如何在 Android Studio 中导入自定义图标? [英] How do I import a custom made icon in Android Studio?

查看:152
本文介绍了如何在 Android Studio 中导入自定义图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为自己的 Android 应用制作了自己的图标,但我是 Android Studio 的初学者,它没有导入到我现有的 Android Studio 项目中.

I made my own icon for my Android app, but I am a beginner in Android Studio, and it is not importing into my already existing Android Studio project.

我读到只使用 Android Launcher Icon Generator 来自 Android Asset Studio,然后创建一个 zip 文件,它应该放在你的项目 res 文件夹中.我基本上用新的文件夹替换了旧的 res 文件夹,我检查了所有新图标都在它们正确的文件夹中,即我的项目目录中的 drawable-hdpi、drawable-mdpi 等,但它们不在 res 文件夹中我的 Android Studio 项目窗格.

I read to just use the Android Launcher Icon Generator from Android Asset Studio, which then creates a zip file for you, which should be placed inside your project res folder. I basically replaced the old res folder with the new one, and I checked and all the new icons are in their right folders, i.e. drawable-hdpi, drawable-mdpi, etc within my project directory, but they are not in the res folder of my project pane of Android Studio.

但是,我重新启动了 Android Studio,并没有刷新以显示这些新导入.当我运行我的项目时,它仍然显示旧的标准 ic-launcher.png 文件.

However, I restarted Android Studio, and it did not refresh to show these new imports. When I run my project, it still shows the old standard ic-launcher.png files.

推荐答案

右键单击 res 文件夹,选择 New > Image Asset.浏览图像文件,应该为你做这项工作

right click on res folder, selecting New > Image Asset. browse image file, should do the job for you

这篇关于如何在 Android Studio 中导入自定义图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆