How to style ActionBar.NAVIGATION_MODE_LIST Android -


i trying apply changes spinner.

spinneradapter = new myspinneradapter(getactivity().getapplicationcontext(),             android.r.layout.simple_spinner_dropdown_item, list); 

i have been playing around themes , looks need apply in order make changes, not working. using right parent spinneritem style? missing?

<style name="mytheme" parent="@style/theme.appcompat.light">     <item name="android:spinnerstyle">@style/spinner</item> </style>    <style name="spinner" parent="@android:style/widget.spinner">     <item name="android:background">@color/pending_red</item> </style> 

i inflate 2 different layouts in adapter, 1 in public view getdropdownview , in public view getview

doesnt android.r.layout.simple_spinner_dropdown_item has effect all.

found solution

i had use

 <item name="android:actiondropdownstyle">@style/spinner</item> 

instead of

 <item name="android:spinnerstyle">@style/spinner</item> 

in root!

it here in end!

just remove

parent="@android:style/widget.spinner" 

and replace this:

 <style name="spinner" parent="@style/widget.appcompat.spinner.dropdown.actionbar">     <item name="android:background">@color/pending_red</item>  </style> 

Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -