<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="books">
<item>我的java讲义</item>
<item>我的android讲义</item>
<item>我的xml讲义</item>
</string-array>
<resources>
<string-array name="books">
<item>我的java讲义</item>
<item>我的android讲义</item>
<item>我的xml讲义</item>
</string-array>
</resources>
----------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<Spinner
android:prompt="@string/title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:entries="@array/books"/>
</LinearLayout>