use custom spinner color

This commit is contained in:
Jimmy Shih
2013-11-21 14:42:08 -08:00
parent 03145839f3
commit 76c06f68fb
17 changed files with 47 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 421 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 521 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 472 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 522 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 420 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 667 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false"
android:drawable="@drawable/spinner_disabled_holo_dark" />
<item android:state_pressed="true"
android:drawable="@drawable/spinner_pressed_holo_dark" />
<item android:state_pressed="false" android:state_focused="true"
android:drawable="@drawable/spinner_focused_holo_dark" />
<item android:drawable="@drawable/spinner_default_holo_dark" />
</selector>
@@ -9,4 +9,8 @@
<item name="android:progressDrawable">@drawable/progress_horizontal_holo_dark</item>
<item name="android:indeterminateDrawable">@drawable/progress_indeterminate_horizontal_holo_dark</item>
</style>
<style name="SpinnerMyTracks" parent="android:Widget.Holo.Spinner">
<item name="android:background">@drawable/spinner_background_holo_dark</item>
<item name="android:dropDownSelector">@drawable/list_selector_holo_dark</item>
</style>
</resources>
@@ -19,6 +19,7 @@ limitations under the License.
<!-- Auto generated -->
<item name="android:activatedBackgroundIndicator">@drawable/activated_background_holo_dark</item>
<item name="android:autoCompleteTextViewStyle">@style/AutoCompleteTextViewMyTracks</item>
<item name="android:dropDownSpinnerStyle">@style/SpinnerMyTracks</item>
<item name="android:editTextBackground">@drawable/edit_text_holo_dark</item>
<item name="android:listChoiceBackgroundIndicator">@drawable/list_selector_holo_dark</item>
<item name="android:listChoiceIndicatorMultiple">@drawable/btn_check_holo_dark</item>
@@ -30,8 +31,16 @@ limitations under the License.
<item name="android:alertDialogTheme">@style/AlertDialogThemeMyTracks</item>
</style>
<style name="AlertDialogThemeMyTracks" parent="@android:style/Theme.Holo.Dialog">
<!-- From auto generated -->
<item name="android:activatedBackgroundIndicator">@drawable/activated_background_holo_dark</item>
<item name="android:autoCompleteTextViewStyle">@style/AutoCompleteTextViewMyTracks</item>
<item name="android:dropDownSpinnerStyle">@style/SpinnerMyTracks</item>
<item name="android:editTextBackground">@drawable/edit_text_holo_dark</item>
<item name="android:listChoiceBackgroundIndicator">@drawable/list_selector_holo_dark</item>
<item name="android:listChoiceIndicatorMultiple">@drawable/btn_check_holo_dark</item>
<item name="android:listChoiceIndicatorSingle">@drawable/btn_radio_holo_dark</item>
<item name="android:progressBarStyleHorizontal">@style/ProgressBarMyTracks</item>
<!-- From Theme.Holo.Dialog.Alert -->
<item name="android:textColor">@color/holo_orange_dark</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowContentOverlay">@null</item>
+7
View File
@@ -28,7 +28,14 @@
<style name="RadioButtonMyTracks" parent="android:Widget.CompoundButton.RadioButton">
<item name="android:button">@drawable/btn_radio_holo_dark</item>
</style>
<style name="SpinnerDropDownItemMyTracks" parent="android:Widget.DropDownItem.Spinner">
<item name="android:checkMark">@drawable/btn_radio_holo_dark</item>
</style>
<style name="SpinnerItemMyTracks" parent="android:TextAppearance.Widget.TextView.SpinnerItem">
<item name="android:textColor">#ffffff</item>
</style>
<style name="SpinnerMyTracks" parent="android:Widget.Spinner">
<item name="android:background">@drawable/spinner_background_holo_dark</item>
<item name="android:dropDownSelector">@drawable/list_selector_holo_dark</item>
</style>
</resources>
+2
View File
@@ -24,6 +24,8 @@ limitations under the License.
<item name="android:listViewWhiteStyle">@style/ListViewMyTracks.White</item>
<item name="android:progressBarStyleHorizontal">@style/ProgressBarMyTracks</item>
<item name="android:radioButtonStyle">@style/RadioButtonMyTracks</item>
<item name="android:spinnerDropDownItemStyle">@style/SpinnerDropDownItemMyTracks</item>
<item name="android:spinnerItemStyle">@style/SpinnerItemMyTracks</item>
<item name="android:spinnerStyle">@style/SpinnerMyTracks</item>
</style>
</resources>