私のアクションバーは現在次のようになっています:
私はそれをこのようにしたい:
ロゴの横にある黒い線は無視してください。主に私が欲しいのはchange the color of the text in the IcsSpinner to white
私のアクティビティコードは次のとおりです。
ArrayAdapter<String> listAdapter = new ArrayAdapter<String>(this,
R.layout.sherlock_spinner_item, cities);
listAdapter
.setDropDownViewResource(R.layout.sherlock_spinner_dropdown_item);
setContentView(mViewPager);
final ActionBar bar = getSupportActionBar();
bar.setCustomView(R.layout.custom_actionbar);
bar.setIcon(R.drawable.logo);
bar.setDisplayShowCustomEnabled(true);
IcsSpinner citySpinner = (IcsSpinner) (bar.getCustomView())
.findViewById(R.id.city_spinner);
citySpinner.setAdapter(listAdapter);
私のcustom_actionbar.xmlは次のとおりです。
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:gravity="right|center_vertical"
android:orientation="horizontal" >
<com.actionbarsherlock.internal.widget.IcsSpinner
android:id="@+id/city_spinner"
android:layout_width="wrap_content"
android:layout_height="match_parent"/>
</RelativeLayout>
スピナーも欲しいですjust left to the refresh icon
。2番目の画像のように。
ありがとうございました