快速的方式来导入Android的工作室可绘制?工作室、快速、方式、Android

2023-09-13 00:38:38 作者:奥利奥根本扭不开

目前在Android项目,你将需要进口一些可绘制某一点 - 无论是工具栏图标,图像,用户界面​​功能 - 以 RES /绘制目录。大部分有规模的最常见的预选赛图像(时代绘制 - 华电国际绘制-MDPI 绘制-xdpi 绘制-xxdpi ,...)。

At some point in an Android project you will need to import some drawables - be it toolbar icons, images, UI features - in res/drawable directory. Most of the times you have images scaled for the most common qualifiers (drawable-hdpi, drawable-mdpi, drawable-xdpi, drawable-xxdpi, ...).

因此​​,我们需要做三,四,甚至五文件拷贝/糊每个绘制:

So we need to do three, four, even five file copy/pastes for each drawable:

external_dir/drawable-mdpi/file.png   ->  my_package/drawable-mdpi/file.png
external_dir/drawable-hdpi/file.png   ->  my_package/drawable-hdpi/file.png
external_dir/drawable-xdpi/file.png   ->  my_package/drawable-xdpi/file.png
external_dir/drawable-xxdpi/file.png  ->  my_package/drawable-xxdpi/file.png

这很烦人,如果你要导入多个图片。有一种简单,快捷的方式在相应的包文件夹传输的 file.png 右这四个实例?在IDE中实现的一些功能?一些简单的解决方法?

That is annoying if you have to import multiple pics. Is there an easy, quick way to transfer these four instances of file.png right in the corresponding package folder? Some function implemented in the IDE? Some easy workaround?

我的工作流程到现在为止已经:

My workflow until now has been:

复制/粘贴从操作系统的文件管理器,从外部目录的包,然后刷新安卓Studio中的资源文件。这意味着打开了合格的子目录中的每一个,因此四招式; 从操作系统的文件管理器,移动到 external_dir ,搜索 file.png ,获得四个实例一个列表,拖动和放大器;拖放到Android的工作室,然后为每个PIC右键点击导航栏上,复制粘贴在相应的包目录。不是真的好! copy/paste from OS file manager, from the external directory to the package, and then refresh the resource files in Android Studio. That implies opening each one of the qualified subdirectories, so four moves; from the OS file manager, move to external_dir, search for file.png, get the four instances in a single list, drag&drop into Android Studio, then for each pic right click on the nav bar, Copy, and Paste in the corresponding package directory. Not really better!

任何意见?

编辑 - 我真的不要求当然是建议 - 我想知道是否有办法的移动次数下降到一个(或如)

Edit - I'm not really asking for "advices" of course - I want to know if there's a way to drop the number of moves to one (or such).

推荐答案

检查android-drawable-importer-intellij-plugin

 
精彩推荐
图片推荐