Android包,包含了app内的一些资源类,以及系统特性的一些应用权限permissions
你通常可以直接引用R类中的资源,但是你要保证这些资源的唯一性,例如id,尽量不要使用外部依赖,来保证应用的凝聚力。
更为重要的是,你不要去使用drawable内的资源,因为他们可能会因为操作系统版本而发生变化,导致你的应用程序的兼容性有问题
通常只有style资源才是你能够使用的直接资源。
android.包内包含以下类:
?
?
?
| Manifest |
| Manifest.permission |
| Manifest.permission_group |
| R |
| R.anim |
| R.animator |
| R.array |
| R.attr |
| R.bool |
| R.color |
| R.dimen |
| R.drawable |
| R.fraction |
| R.id |
| R.integer |
| R.interpolator |
| R.layout |
| R.menu |
| R.mipmap |
| R.plurals |
| R.raw |
| R.string |
| R.style |
| R.styleable |
| R.transition |
| R.xml |