res文件夹
都可以通过resources对象获取。都在R文件中有引用生成。
1.图片: drawble:re.getDrawable()
2.尺寸:dimension:re.getDimension()
3.颜色:color:re.getColor()
4.数组:String_array:re.getStringArray()
5.动画:anim:re.getAnimation()
6.颜色状态:colorstatelist:re.getColorStateList()
7.数组:Int:re.getInArray()
8.布局:layout:re.getLayout()
9.数组键名:re.getResourceEnty / Name()
10.XML: re.getXml()
11.raw:re.OpenRawResource()
assets文件夹
assets:re.getAssets().open()
247

被折叠的 条评论
为什么被折叠?



