我正在尝试为我的应用更改溢出菜单列表视图文本,但我没有运气。我可以更改textColor和textSize,但不能更改fontFamily。
这是我的风格:
<style name="CustomActionBarTheme"
parent="@android:style/Theme.Holo.Light">
<item name="android:actionBarStyle">@style/MyActionBar</item>
<item name="android:actionMenuTextAppearance">@style/PopupMenuTextView</item>
<!-- this takes care of the bottom divider -->
<item name="android:windowContentOverlay">@null</item>
</style>
<style name="MyActionBar"
parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
<item name="android:background">@drawable/actionbar_background</item>
</style>
<!--Change Overflow Menu ListView Text Size and Text Size -->
<style name="PopupMenuTextView" parent="@android:style/Widget.Holo.Light.TextView">
<item name="android:textColor">@color/white</item> <!-- works -->
<item name="android:fontFamily">sans-serif-thin</item> <!-- doesn't work!!!!!! -->
<item name="android:textSize">24sp</item> <!-- works -->
</style>
有什么想法吗?