2014-04-07 39 views

回答

0

嘗試使用這種方式,

<style name="Custom.Widget.Sherlock.TextView.SpinnerItem" parent="Widget.Sherlock.TextView.SpinnerItem"> 
     <item name="android:textAppearance"> 
      @style/Custom.TextAppearance.Sherlock.Widget.TextView.SpinnerItem</item> 
     <item name="android:paddingLeft">8dp</item> 
     <item name="android:paddingRight">8dp</item> 
    </style> 

    <style name="Custom.TextAppearance.Sherlock.Widget.TextView.SpinnerItem" parent="TextAppearance.Sherlock.Widget.TextView.SpinnerItem"> 
     <item name="android:textSize">14dp</item> 
     <item name="android:textColor">#FFFFFF</item> 
     <item name="android:shadowColor">#4ccfff</item> 
     <item name="android:shadowDy">3</item> 
     <item name="android:textStyle">normal</item> 
    </style> 

欲瞭解更多信息,請訪問此鏈接,

http://krishnalalstha.wordpress.com/tag/how-to-style-spinner-in-sherlock-actionbar/