如何将一组图标导入到 Android Studio 项目中 [英] How to import set of icons into Android Studio project
问题描述
我从
<小时>
旧答案
转到设置>插件>浏览存储库>搜索Android Drawable Import
此插件包含 4 个主要功能.
- AndroidIcons Drawable 导入
- 材质图标可绘制导入
- 缩放可绘制
- 多源可绘制
如何使用 Material Icons Drawable 导入:(Android Studio 1.2)
- 转到文件 > 设置 > 其他设置 > Android Drawable 导入
- 下载 Material Icon 并选择您的下载路径.
- 现在右键单击项目,新建>材质图标导入
- 在项目中使用您最喜欢的 drawable.
I downloaded collection of icons from Android Developers center Each icon in this collection is ordered in forlders according to its resolution: drawable-hdpi, drawable-mdpi, drawable-xhdpi, drawable-xxhdpi.
Is there a way to import all the 4 icon's files in one action to Android Studio or I need to copy it one by one? (when I used new->Image Asset , I had to fill a file path, I couldn't fill it with folder path)
Update 25/2/15:
According to this SO question, seems like there is a way to generate the 4 size of icons by Android Asset Studio, and then import the zip file directly to your Android Studio project res folder - has anyone used it?
Edit : After Android Studios 1.5 android support Vector Asset Studio.
Follow this, which says:
To start Vector Asset Studio:
- In Android Studio, open an Android app project.
- In the Project window, select the Android view.
- Right-click the res folder and select New > Vector Asset.
Old Answer
Go to Settings > Plugin > Browse Repository > Search Android Drawable Import
This plugin consists of 4 main features.
- AndroidIcons Drawable Import
- Material Icons Drawable Import
- Scaled Drawable
- Multisource-Drawable
How to Use Material Icons Drawable Import : (Android Studio 1.2)
- Go to File > Setting > Other Settings > Android Drawable Import
- Download Material Icon and select your downloaded path.
- Now right click on project , New > Material Icon Import
- Use your favorite drawable in your project.
这篇关于如何将一组图标导入到 Android Studio 项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!