---
title: "android 资源文件"
author: "micc010"
date: "2011-02-22T23:21:24Z"
tags: []
categories: ["移动开发"]
slug: "android"
draft: false
lastmod: "2011-02-22T23:21:24Z"
id: 918873
url: "https://micc010.iteye.com/blog/918873"
---

|类型   |   位置           |           说明|
|颜色 | /res/values/any-file | 节点为color，调用R.color.*|
|字符串 | /res/values/any-file | 节点为string，调用R.string.*|
|尺寸 | /res/values/any-file | 节点为dimen，调用R.dimen.*|
|图像 | /res/drawable/multiple-files | 文件名不能为大写，调用R.drawable.*|
|色图 | /res/values/any-file以及/res/drawable/multiple-files | 调用R.drawable.*|
|任意xml文件 | /res/xml/*.xml | 调用R.xml.*|
|任意原始资源 | /res/raw/*.* | 调用R.raw.*|
|任意原始资产 | /assets/*.*/*.*  | |