Option 1. add your custom theme to style.xml. This will change the textcolor of items in the dropdown list.
<style name="MySpinnerTheme" parent="android:Theme">
<item name="android:textColor">@android:color/holo_green_dark</item>
</style>
layout
<Spinner
android:id="@+id/spinner1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/MySpinnerTheme"
android:spinnerMode="dropdown"/>
Option 2. If you want to change the selected item only.
...
Spinner.ItemSelected += new EventHandler<AdapterView.ItemSelectedEventArgs>(spinner_ItemSelected);
...
private void spinner_ItemSelected(object sender, AdapterView.ItemSelectedEventArgs e){
Spinner spinner = (Spinner)sender;
TextView textView = (TextView)spinner.SelectedView;
textView.SetTextColor(Color.Rgb(0, 235, 0));
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…