Resource Type总结

来源:互联网 发布:黄金交易软件排名 编辑:程序博客网 时间:2024/05/01 18:05

Animation

定义预定义的动画
Tween动画被保存在“res/anim/” ,能被R.anim类访问
Frame动画被保存在“res/drawable/” ,能被R.drawable类访问

Color State List Resource

定义基于View状态而改变的颜色资源
保存在“res/color/” ,能被R.color类访问

Drawable Resources

通过使用位图或者XML文件定义多种多样的图像
保存在“res/drawable/” ,能被R.drawable 类访问

Layout Resource

定义应用程序用户界面的布局
保存在“res/layout/” ,能被R.layout类访问

Menu Resource

定义应用程序菜单的内容
保存在“res/menu/” ,能被R.menu类访问

String Resource

定义字符串,字符串数组和plurals 
保存在“res/values/” ,能分别被R.string, R.array, and R.plurals类访问

Style Resource

定义用户界面元素的外观和格式
保存在“res/values/” ,能被R.style 类访问

More Resource Types

定义像booleans, integers, dimensions, colors, and other arrays这些值
保存在“res/values/” ,但只能被唯一的R子类访问(例如R.bool,R.integer,R.dimen等等)

0 0
原创粉丝点击