android:Icsspinner位于ActionBar之外,不显示下拉列表

android:Icsspinner位于ActionBar之外,不显示下拉列表,android,actionbarsherlock,Android,Actionbarsherlock,我有一个微调器,它工作得很好,并且只为API 15和16的AVD填充数据。但对于API级别8和10,它不会显示下拉列表。我正在使用ActionBarSherlock String[] categoryFixed = { "Mortgage/Rent", "Utilities", "Car Payments", "Insurance", "Misc" }; IcsSpinner category =(IcsSpinner) findVi

我有一个微调器,它工作得很好,并且只为API 15和16的AVD填充数据。但对于API级别8和10,它不会显示下拉列表。我正在使用ActionBarSherlock

  String[] categoryFixed = { "Mortgage/Rent", "Utilities",
            "Car Payments", "Insurance", "Misc" };       

         IcsSpinner category =(IcsSpinner) findViewById(R.id.spinner1);
         ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
                R.layout.sherlock_spinner_item, categoryFixed);
        adapter.setDropDownViewResource(R.layout.sherlock_spinner_dropdown_item);

        category.setAdapter(adapter);
String[]categoryFixed={“抵押/租金”、“公用事业”,
“汽车付款”、“保险”、“杂项”};
ICSpinner类别=(ICSpinner)findViewById(R.id.Spinner 1);
ArrayAdapter=新的ArrayAdapter(此,
R.layout.sherlock_spinner_项目,类别固定);
adapter.setDropDownViewResource(R.layout.sherlock\u微调器\u下拉菜单\u项);
类别.设置适配器(适配器);
这是我的纺纱机

           <Spinner
            android:id="@+id/spinner1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="0.4"
            />


这里有什么我特别缺少的吗?

我在Android 2.2上测试了你的代码,效果很好。确保字符串数组位于
values
目录中,而不是
values-v11
values-v14

使用

<com.actionbarsherlock.internal.widget.IcsSpinner

res dir中的strings.xml文件在哪里?
IcsSpinner
不在ActionBarSherlock之外使用。它在
内部
包中是有原因的!我发现它没有出现是因为我用的是ActionBarSherlock。所以我在ActionBar之外使用了IcsSpinner。但我仍然没有得到下降。我已相应地编辑了我的问题。
<Spinner