-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyleTest4Spinner.xml
124 lines (94 loc) · 9.64 KB
/
styleTest4Spinner.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<resources>
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<!--<style name="AppTheme" parent="AppBaseTheme">-->
<!--<!– All customizations that are NOT specific to a particular API-level can go here. –>-->
<!--</style>-->
<!--!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!-->
<!-- !!!! Vas voir ca:http://developer.android.com/guide/topics/ui/actionbar.html et teste les changements-->
<style name="Theme.MyTheme" parent="Theme.AppCompat.Light">
<!-- colorPrimary is used for the default action bar background -->
<item name="colorPrimary">@color/colorPrimary</item>
<!-- colorPrimaryDark is used for the status bar -->
<item name="colorPrimaryDark">@color/colorPrimaryDarker</item>
<!--colorAccent is used as the default value for colorControlActivated,which is used to tint widgets-->
<item name="colorAccent">@color/colorAccent</item>
<!--Styling the NavigationBar-->
<item name="@style/Widget.AppCompat.Spinner.DropDown.ActionBar">
MyBase.Widget.AppCompat.Spinner.DropDown.ActionBar
</item>
<item name="@style/Widget.AppCompat.Light.Spinner.DropDown.ActionBar">
MyBase.Widget.AppCompat.Light.Spinner.DropDown.ActionBar
</item>
<item name="@style/Widget.AppCompat.Spinner">
MyBase.Widget.AppCompat.Spinner
</item>
</style>
<style name=" MyBase.Widget.AppCompat.Spinner" parent="@style/Widget.AppCompat.Spinner.DropDown.ActionBar">
<item name="spinnerMode">dropdown</item>
<item name="android:clickable">true</item>
<!--<item name="android:background">@drawable/abc_spinner_mtrl_am_alpha</item>-->
<item name="android:background">#FFFF0000</item>
<item name="android:dropDownSelector">?attr/listChoiceBackgroundIndicator</item>
<item name="android:popupBackground">#FFFF00FF</item>
<item name="android:dropDownVerticalOffset">0dip</item>
<item name="android:dropDownHorizontalOffset">0dip</item>
<item name="overlapAnchor">true</item>
<item name="android:dropDownWidth">wrap_content</item>
<item name="popupPromptView">@layout/abc_simple_dropdown_hint</item>
<item name="android:gravity">left|start|center_vertical</item>
<item name="disableChildrenWhenDisabled">true</item>
</style>
<style name="MyBase.Widget.AppCompat.Spinner.DropDown.ActionBar" parent="@style/Widget.AppCompat.Spinner.DropDown.ActionBar">
<item name="spinnerMode">dropdown</item>
<item name="android:clickable">true</item>
<!--<item name="android:background">@drawable/abc_spinner_mtrl_am_alpha</item>-->
<item name="android:background">#FFFF0000</item>
<item name="android:dropDownSelector">?attr/listChoiceBackgroundIndicator</item>
<item name="android:popupBackground">#FFFF00FF</item>
<item name="android:dropDownVerticalOffset">0dip</item>
<item name="android:dropDownHorizontalOffset">0dip</item>
<item name="overlapAnchor">true</item>
<item name="android:dropDownWidth">wrap_content</item>
<item name="popupPromptView">@layout/abc_simple_dropdown_hint</item>
<item name="android:gravity">left|start|center_vertical</item>
<item name="disableChildrenWhenDisabled">true</item>
</style>
<style name="MyBase.Widget.AppCompat.Light.Spinner.DropDown.ActionBar" parent="@style/Widget.AppCompat.Light.Spinner.DropDown.ActionBar">
<item name="spinnerMode">dropdown</item>
<item name="android:clickable">true</item>
<!--<item name="android:background">@drawable/abc_spinner_mtrl_am_alpha</item>-->
<item name="android:background">#FFFF0000</item>
<item name="android:dropDownSelector">?attr/listChoiceBackgroundIndicator</item>
<item name="android:popupBackground">#FFFF00FF</item>
<item name="android:dropDownVerticalOffset">0dip</item>
<item name="android:dropDownHorizontalOffset">0dip</item>
<item name="overlapAnchor">true</item>
<item name="android:dropDownWidth">wrap_content</item>
<item name="popupPromptView">@layout/abc_simple_dropdown_hint</item>
<item name="android:gravity">left|start|center_vertical</item>
<item name="disableChildrenWhenDisabled">true</item>
</style>
</resources>
<!--<style name="Theme.MyTheme" parent="Theme.AppCompat.Light">--><!-- colorPrimary is used for the default action bar background --><!--<item name="colorPrimary">@color/colorPrimary</item>--><!-- colorPrimaryDark is used for the status bar --><!--<item name="colorPrimaryDark">@color/colorPrimaryDarker</item>--><!--colorAccent is used as the default value for colorControlActivated,which is used to tint widgets--><!--<item name="colorAccent">@color/colorAccent</item>--><!--Styling the NavigationBar--><!--<item name="android:Widget.Spinner">@style/MyBase.Widget.AppCompat.Spinner</item>--><!--<item name="@style/Widget.AppCompat.Spinner.DropDown.ActionBar">--><!--@style/MyBase.Widget.AppCompat.Spinner.DropDown.ActionBar--><!--</item>--><!--<item name="@style/Widget.AppCompat.DropDownItem.Spinner">--><!--@style/MyBase.Widget.AppCompat.DropDownItem.Spinner--><!--</item>--><!--<item name="@style/TextAppearance.AppCompat.Widget.DropDownItem">--><!--@style/MyBase.TextAppearance.AppCompat.Widget.DropDownItem--><!--</item>--><!--<item name="@style/TextAppearance.Widget.AppCompat.ExpandedMenu.Item">--><!--@style/MyBase.TextAppearance.Widget.AppCompat.ExpandedMenu.Item--><!--</item>--><!--<item name="android:dropDownItemStyle">@style/Widget.DropDownItemLight</item>-->
<!--<item name="android:spinnerStyle">@style/SpinnerAppTheme</item>-->
<!--</style>--><!--<style name="MyDropDownNav" parent="android:style/Widget.Spinner.DropDown.ActionBar">--><!--<item name="android:background">@drawable/ad_spinner_background_holo_light</item>--><!--<item name="android:popupBackground">@drawable/ad_menu_dropdown_panel_holo_light</item>--><!--<item name="android:dropDownSelector">@drawable/ad_selectable_background</item>--><!--</style>-->
<!--<style name="SpinnerAppTheme" parent="android:Widget.Spinner">--><!--<item name="android:background">@drawable/abc_spinner_mtrl_am_alpha</item>--><!--<item name="android:dropDownSelector">?attr/listChoiceBackgroundIndicator</item>--><!--</style>-->
<!--<style name="Widget.DropDownItemLight" parent="@android:style/Widget.DropDownItem">--><!--<item name="android:textColor">@color/blue_pure</item>--><!--<item name="android:textSize">18sp</item>--><!--<item name="android:textStyle">italic</item>--><!--</style>-->
<!--<style name="MyBase.Widget.AppCompat.Spinner" parent="android:Widget.Spinner">--><!--<item name="android:background">@color/blue_pure</item>--><!--<item name="android:dropDownSelector">?attr/listChoiceBackgroundIndicator</item>--><!--<item name="android:dropDownVerticalOffset">0dip</item>--><!--</style>-->
<!--<style name="MyBase.Widget.AppCompat.Spinner.DropDown.ActionBar" parent="@style/Widget.AppCompat.Spinner.DropDown.ActionBar">--><!--<item name="spinnerMode">dropdown</item>--><!--<item name="android:clickable">true</item>--><!--<item name="android:background">@drawable/abc_spinner_mtrl_am_alpha</item>--><!--<item name="android:background">#FFFF0000</item>--><!--<item name="android:dropDownSelector">?attr/listChoiceBackgroundIndicator</item>--><!--<item name="android:popupBackground">#FFFF00FF</item>--><!--<item name="android:dropDownVerticalOffset">0dip</item>--><!--<item name="android:dropDownHorizontalOffset">0dip</item>--><!--<item name="overlapAnchor">true</item>--><!--<item name="android:dropDownWidth">wrap_content</item>--><!--<item name="popupPromptView">@layout/abc_simple_dropdown_hint</item>--><!--<item name="android:gravity">left|start|center_vertical</item>--><!--<item name="disableChildrenWhenDisabled">true</item>--><!--</style>-->
<!--<style name="MyBase.Widget.AppCompat.DropDownItem.Spinner" parent="@style/Widget.AppCompat.DropDownItem.Spinner">--><!--<item name="android:textAppearance">@style/TextAppearance.AppCompat.Widget.DropDownItem--><!--</item>--><!--<item name="android:paddingLeft">8dp</item>--><!--<item name="android:paddingRight">8dp</item>--><!--<item name="android:gravity">center_vertical</item>--><!--</style>-->
<!--<style name="MyBase.TextAppearance.AppCompat.Widget.DropDownItem" parent="@style/TextAppearance.AppCompat.Widget.DropDownItem">--><!--<item name="android:textColor">#FFFF00FF</item>--><!--<item name="android:textStyle">italic</item>--><!--</style>-->
<!--<style name="MyBase.TextAppearance.Widget.AppCompat.ExpandedMenu.Item" parent="@style/TextAppearance.Widget.AppCompat.ExpandedMenu.Item">--><!--<item name="android:textColor">#FFFF00FF</item>--><!--</style>--><!-- Spinner Widgets -->
<!--<style name="MyBase.Widget.AppCompat.ListView.DropDown" parent="android:Widget.ListView">--><!--<item name="android:listSelector">?attr/listChoiceBackgroundIndicator</item>--><!--<item name="android:divider">@null</item>--><!--</style>--><!-- Spinner Widgets -->
<!-- <style name="Base.Widget.AppCompat.ListView.DropDown" parent="android:Widget.ListView"> --><!-- <item name="android:listSelector">?attr/listChoiceBackgroundIndicator</item> --><!-- <item name="android:divider">@null</item> --><!-- </style> -->