---
title: "[Android]中文API(一)android包下的那些类"
author: "MyEyeOfJava"
date: "2014-12-01T16:41:08Z"
tags: []
categories: ["移动开发"]
slug: "android-api-android"
draft: false
lastmod: "2014-12-01T16:46:57Z"
id: 2162225
url: "https://myeyeofjava.iteye.com/blog/2162225"
---

**Android**包，包含了app内的一些资源类，以及系统特性的一些应用权限permissions

你通常可以直接引用R类中的资源，但是你要保证这些资源的唯一性，例如id，尽量不要使用外部依赖，来保证应用的凝聚力。  
更为重要的是，你不要去使用drawable内的资源，因为他们可能会因为操作系统版本而发生变化，导致你的应用程序的兼容性有问题  
通常只有style资源才是你能够使用的直接资源。

android.包内包含以下类：

 

 

[Manifest](/reference/android/Manifest.html) [Manifest.permission](/reference/android/Manifest.permission.html) [Manifest.permission\_group](/reference/android/Manifest.permission_group.html) [R](/reference/android/R.html) [R.anim](/reference/android/R.anim.html) [R.animator](/reference/android/R.animator.html) [R.array](/reference/android/R.array.html) [R.attr](/reference/android/R.attr.html) [R.bool](/reference/android/R.bool.html) [R.color](/reference/android/R.color.html) [R.dimen](/reference/android/R.dimen.html) [R.drawable](/reference/android/R.drawable.html) [R.fraction](/reference/android/R.fraction.html) [R.id](/reference/android/R.id.html) [R.integer](/reference/android/R.integer.html) [R.interpolator](/reference/android/R.interpolator.html) [R.layout](/reference/android/R.layout.html) [R.menu](/reference/android/R.menu.html) [R.mipmap](/reference/android/R.mipmap.html) [R.plurals](/reference/android/R.plurals.html) [R.raw](/reference/android/R.raw.html) [R.string](/reference/android/R.string.html) [R.style](/reference/android/R.style.html) [R.styleable](/reference/android/R.styleable.html) [R.transition](/reference/android/R.transition.html) [R.xml](/reference/android/R.xml.html)