是否可以更改操作栏上的溢出按钮(三个垂直点)的颜色? 如果是这样,我们该怎么做?没有找到溢出按钮的样式。
谢谢
最佳答案
您可以使用以下样式声明更改用于它的图像。
<style name="MyCustomTheme" parent="style/Theme.Holo">
<item name="android:actionOverflowButtonStyle">@style/MyCustomTheme.OverFlow</item>
</style>
<style name="MyCustomTheme.OverFlow">
<item name="android:src">@drawable/my_overflow_image</item>
</style>
如果您使用的是 ActionBarSherlock,请按以下步骤操作
<style name="MyCustomTheme" parent="style/Theme.Sherlock">
<item name="android:actionOverflowButtonStyle">@style/MyCustomTheme.OverFlow</item>
<item name="actionOverflowButtonStyle">@style/MyCustomTheme.OverFlow</item>
</style>
<style name="MyCustomTheme.OverFlow">
<item name="android:src">@drawable/my_overflow_image</item>
</style>
关于android - 更改 ActionBar 上溢出按钮的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11425660/