从安卓APK忽略文件 [英] Ignoring files from Android APK

查看:156
本文介绍了从安卓APK忽略文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能被打包到了Android APK忽略文件?举例来说,我有我在同一文件夹作为他们的巴纽同行.PSD文件和所有的.PSD文件被打包。

Is it possible to ignore files from being packaged into the Android APK? For instance, I have my .psd files in the same folder as their .png counterparts, and all the .psd files get packaged up.

我知道我可以移动至文件夹之外,但我喜欢在所有让他们在一起,将preFER不如果可能的话

I know I can move them outside of the folder, but I like having them in all together and would prefer not to if possible

推荐答案

这实际上是支持在Android资产打包工具(AAPT)。

This is actually supported in the Android Asset Packaging Tool (AAPT).

我总是把我的PSD样的文件在这样的资源目录:

I always put my psd-like files in the resource directories like this:

/res/drawable/_pre_production/ic_launcher.psd

任何 _ pre_production 目录不会被添加到APK。

Any _pre_production directory will not be added to the APK.

通过这种方法他们在实际图像目录的子目录,但我没有看到这个问题。它仍然井然有序。 ;)

With this approach they're in a sub-directory of the actual images' directory, but I don't see the problem with that. It is still neatly organized. ;)

这篇关于从安卓APK忽略文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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