---
title: "数组的使用"
author: "AndLi"
date: "2011-11-17T14:41:06Z"
tags: []
categories: ["移动开发"]
slug: "untitled"
draft: false
lastmod: "2011-11-17T14:41:06Z"
id: 1264138
url: "https://andli.iteye.com/blog/1264138"
---

**调用办法：**

 

 

String items\[] = getResources().getStringArray(R.array.backupitem);

 

 

**array.xml**

 

```
<?xml version="1.0" encoding="utf-8"?>
<resources>
	<string-array name="backupitem">
		<item>备份到SD卡</item>
		<item>从SD卡恢复备份</item>
		<item>导出为Txt文件</item>
	</string-array>
</resources>
```