如何将一组图标导入到 Android Studio 项目中 [英] How to import set of icons into Android Studio project

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

问题描述

我从

<小时>

旧答案

转到设置>插件>浏览存储库>搜索Android Drawable Import

此插件包含 4 个主要功能.

  1. AndroidIcons Drawable 导入
  2. 材质图标可绘制导入
  3. 缩放可绘制
  4. 多源可绘制

如何使用 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:

  1. In Android Studio, open an Android app project.
  2. In the Project window, select the Android view.
  3. 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.

  1. AndroidIcons Drawable Import
  2. Material Icons Drawable Import
  3. Scaled Drawable
  4. 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屋!

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