Làm cách nào tôi có thể đặt màu văn bản trong menu phụ của Thanh Hành động Sherlock? Tôi có thể thiết lập nền nhưng không phải là Format .. = (Android - ActionBarSherlock - Đặt màu văn bản của văn bản trong menu phụ
temas.xml
<style name="Tema.Laranja" parent="Theme.Sherlock.Light.ForceOverflow">
<item name="actionBarItemBackground">@drawable/background_selecionado</item>
<item name="android:actionBarItemBackground">@drawable/background_selecionado</item>
<item name="android:dropDownListViewStyle">@style/Tema.Laranja.ListSelector</item>
<item name="dropDownListViewStyle">@style/Tema.Laranja.ListSelector</item>
<item name="popupMenuStyle">@style/Tema.Laranja.Popup</item>
<item name="android:popupMenuStyle">@style/Tema.Laranja.Popup</item>
</style>
<style name="Tema.Laranja.Popup" parent="Widget.Sherlock.Light.PopupMenu">
<item name="android:popupBackground">@drawable/shape_laranja_arredondado</item>
</style>
<style name="Tema.Laranja.ListSelector" parent="Widget.Sherlock.ListView.DropDown">
<item name="android:listSelector">@color/listview_actionbar</item>
<item name="android:textColor">@color/branca</item>
<item name="android:drawSelectorOnTop">true</item>
</style>
listview_actionbar.xml My
<item android:state_focused="false"
android:drawable="@drawable/shape_amarelo_arredondado"/>
<!-- Even though these two point to the same resource, have two states so the drawable will invalidate itself when coming out of pressed state. -->
<item android:state_focused="true" android:state_enabled="false"
android:state_pressed="true"
android:drawable="@drawable/shape_amarelo_arredondado" />
<item android:state_focused="true" android:state_enabled="false"
android:drawable="@drawable/shape_amarelo_arredondado" />
<item android:state_focused="true" android:state_pressed="true"
android:drawable="@drawable/shape_amarelo_arredondado" />
<item android:state_focused="false" android:state_pressed="true"
android:drawable="@drawable/shape_amarelo_arredondado" />
<item android:state_focused="true"
android:drawable="@drawable/shape_amarelo_arredondado" />
Tôi đã thử cả hai câu trả lời, không phải làm việc cho tôi. – JonWillis