1. 准备好数据源/values/arrays.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources>

    <string-array name="select_dialog_resolution">
        <item>适应屏幕</item>
        <item>自定义</item>
        <item>640 x 480</item>
        <item>720 x 480 </item>
        <item>800 x 600</item>
        <item>1024x 768 </item>
        <item>1440×900</item>
        <item>1400×1050 </item>
        <item>1600×1200</item>
        <item>1920×1080 </item>
    </string-array>

</resources>

2.第一种填充数据的方法, 最简单, 直接在xml里加上一句

<Spinner
               android:id="@+id/spinner_resolution"
               android:layout_width="match_parent"
               android:layout_height="wrap_content"
               android:entries="@array/select_dialog_resolution" >
           </Spinner>

3. 第二种在代码里添加

ArrayAdapter<CharSequence> adapter_resolution = ArrayAdapter
                .createFromResource(this, R.array.select_dialog_resolution,
                        android.R.layout.simple_spinner_item);
        adapter_resolution
                .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
        spinner_resolution.setAdapter(adapter_resolution);
        spinner_resolution.setSelection(2);

        spinner_resolution
                .setOnItemSelectedListener(new OnItemSelectedListener() {
                    public void onItemSelected(AdapterView<?> parent,
                            View view, int position, long id) {
                        showToast("Spinner1: position=" + position + " id="
                                + id);
                    }

                    public void onNothingSelected(AdapterView<?> parent) {
                        showToast("Spinner1: unselected");
                    }
                });

完成, 为了代码的简练, 选择第一种吧..