Resource Types
2016-04-04 20:15
507 查看
Each of the documents in this section describe the usage, format and syntax for a certain type of application resource that you can provide in your resources directory (
Here's a brief summary of each resource type:
Animation ResourcesDefine pre-determined animations.
Tween animations are saved in
Frame animations are saved in
Saved in
Saved in
Saved in
Saved in
Saved in
Saved in
Saved in
每一本节中的文件描述了某些类型的应用程序资源,你可以在你的资源目录(提供使用,格式和语法
这里的每个资源类型的简短摘要:
动画资源定义预先确定的动画。
吐温的动画保存在
帧动画保存在
保存在
在保存
保存在
保存在
在保存
保存在
在保存
res/).
Here's a brief summary of each resource type:
Animation ResourcesDefine pre-determined animations.
Tween animations are saved in
res/anim/and accessed from the
R.animclass.
Frame animations are saved in
res/drawable/and accessed from the
R.drawableclass.Color State List ResourceDefine a color resources that changes based on the View state.
Saved in
res/color/and accessed from the
R.colorclass.Drawable ResourcesDefine various graphics with bitmaps or XML.
Saved in
res/drawable/and accessed from the
R.drawableclass.Layout ResourceDefine the layout for your application UI.
Saved in
res/layout/and accessed from the
R.layoutclass.Menu ResourceDefine the contents of your application menus.
Saved in
res/menu/and accessed from the
R.menuclass.String ResourcesDefine strings, string arrays, and plurals (and include string formatting and styling).
Saved in
res/values/and accessed from the
R.string,
R.array, and
R.pluralsclasses.Style ResourceDefine the look and format for UI elements.
Saved in
res/values/and accessed from the
R.styleclass.More Resource TypesDefine values such as booleans, integers, dimensions, colors, and other arrays.
Saved in
res/values/but each accessed from unique
Rsub-classes (such as
R.bool,
R.integer,
R.dimen, etc.).
每一本节中的文件描述了某些类型的应用程序资源,你可以在你的资源目录(提供使用,格式和语法
RES /)。
这里的每个资源类型的简短摘要:
动画资源定义预先确定的动画。
吐温的动画保存在
RES /动画/从访问
R.anim类。
帧动画保存在
RES /绘制/从访问
R.drawable类。颜色状态列表资源定义变化基于视图状态下显色的资源。
保存在
RES /彩色/从访问
R.color类。绘图资源定义各种图形与位图或XML。
在保存
RES /绘制/从访问
R.drawable类。资源布局为应用程序定义的UI布局。
保存在
RES /布局/从访问
R.layout类。菜单资源定义你的应用程序菜单中的内容。
保存在
RES /菜单/,并从访问
R.menu类。字符串资源定义字符串,字符串数组和复数形式(并包含字符串格式化和样式)。
在保存
RES /价值/从访问
R.string,
R.array和
R.plurals类。样式资源定义UI元素的外观和格式
保存在
RES /价值/从访问
R.style类。更多资源类型定义值,如布尔,整数,尺寸,颜色和其他数组。
在保存
RES /价值/但每个从独特的访问
- [R子类(如
R.bool,
R.integer,
R.dimen等)。
相关文章推荐
- 使用C++实现JNI接口需要注意的事项
- Android IPC进程间通讯机制
- Android Manifest 用法
- [转载]Activity中ConfigChanges属性的用法
- Android之获取手机上的图片和视频缩略图thumbnails
- Android之使用Http协议实现文件上传功能
- Android学习笔记(二九):嵌入浏览器
- android string.xml文件中的整型和string型代替
- i-jetty环境搭配与编译
- android之定时器AlarmManager
- android wifi 无线调试
- Android Native 绘图方法
- Android java 与 javascript互访(相互调用)的方法例子
- android 代码实现控件之间的间距
- android FragmentPagerAdapter的“标准”配置
- Android"解决"onTouch和onClick的冲突问题
- android:installLocation简析
- android searchView的关闭事件