我正在嘗試改變Actionbar微調器(sherlock)上的小三角形的顏色。我這樣做使用下面的代碼:Actionbarsherlock Spinner背景圖像拉伸
<style name="MyTheme" parent="Theme.Sherlock.Light">
<item name="windowActionBarOverlay">true</item>
<item name="homeAsUpIndicator">@drawable/ic_drawer</item>
<item name="actionDropDownStyle">@style/MyActionBarSpinnerStyle</item>
</style>
<style name="MyActionBarSpinnerStyle" parent="@style/Widget.Sherlock.Light.Spinner.DropDown.ActionBar">
<item name="background">@drawable/actionbar_spinner_background</item>
</style>
圖標三角形改變,但它似乎像延伸到微調的整體尺寸。
image http://dodsonsolutions.com/screens/screen1.png
我使用patch-9可繪製的文件,大家都說用: spinner http://dodsonsolutions.com/screens/spinner_background_disabled.png
如果這不是文件的正確尺寸,然後沒有人知道它應該是什麼? 或者我怎樣才能讓它不會伸展,只是坐在右下角。
謝謝。
這樣做了!謝謝。我不知道我需要保留.9這個名字。 – TomD