所有的Andr​​oid资源文件夹的完整列表?有的、文件夹、完整、列表

由网友(╰往事如烟)分享简介:首先,我以为我可以在网络上找到这份名单,但我现在不是找错了词,或该名单并不存在。First I thought that I could find this list on the net, but I'm either looking for the wrong term or such list doesn't...

首先,我以为我可以在网络上找到这份名单,但我现在不是找错了词,或该名单并不存在。

First I thought that I could find this list on the net, but I'm either looking for the wrong term or such list doesn't exist.

我需要的是基本上所有predefined资源文件夹中的Andr​​oid项目备忘单。例如,一个列表可以说这样的事情

What I need is basically a cheat sheet of all predefined resource folders in an Android project. For example, a list could say something like this

RES /绘制 - 所有的图形放在这里 RES /绘制 - 华电国际 - 更高分辨率的所有图形放在这里 RES /布局 - 一些无意义的,说明 RES /值 - 一些无意义的,说明 RES /布局的土地 - 一些无意义的,说明 等

我真的很惊讶的是,该名单是不容易在网上找到。每当我需要添加一些资源我以前没有使用过,我要看看在网络上进行正确的命名(我宁愿看资源文件夹列表)。

I am really surprised that such list isn't easily found on the net. Whenever I need to add some resource I haven't used before, I have to look on the net for the correct naming (and I would rather look at the list of res folders).

推荐答案

摘自这里:

在/ res文件夹,你可以有:

In the /res folder you can have:

动画/ - 定义补间动画的XML文件 动画

anim/ - XML files that define tween animations

彩色/ - 定义颜色状态列表的XML文件。

color/ - XML files that define a state list of colors.

绘制/ - 位图文件/九补丁(重相当大的位图)                    /国家列表/图形/动画可绘制/其他可绘制

drawable/ - Bitmap files / Nine-Patches (re-sizable bitmaps) / State lists / Shapes / Animation drawables / Other drawables

布局/ - 定义用户界面布局的XML文件。

layout/ - XML files that define a user interface layout.

菜单/ - 定义应用程序菜单的XML文件,例如一个选项 菜单,上下文菜单或子菜单。

menu/ - XML files that define application menus, such as an Options Menu, Context Menu, or Sub Menu.

原料/ - 任意文件保存在他们的原始形式。

raw/ - Arbitrary files to save in their raw form.

值/ - 包含简单的值的XML文件,如 字符串,整数,和颜色。

values/ - XML files that contain simple values, such as strings, integers, and colors.

arrays.xml资源数组(类型化数组)。 colors.xml的颜色值 dimens.xml的尺寸值。 strings.xml中的字符串值。 styles.xml的风格。

XML / - 任意XML文件

xml/ - Arbitrary XML files

另请参见Accessing替代资源的更具体的设备配置(区域设置,DPI,大小,纵横,方向等)

Also see Accessing Alternative Resources for more specific device configurations (locale, dpi, size, aspect, orientation, etc)

阅读全文

相关推荐

最新文章