AppCompat工具栏:改变溢图标颜色的ActionMode [英] AppCompat Toolbar: Change Overflow Icon Color in ActionMode
问题描述
随着AppCompat工具栏,我希望能够改变溢出菜单图标的颜色上ActionMode变化。
With the AppCompat Toolbar, I want to be able to change the color of the overflow menu icon on ActionMode change.
例如,溢图标将白在正常模式下的工具栏。而会变成黑色ActionMode。到目前为止,我已成功地改变行为模式的背景下,以及标题文本。但是,我还没有找到一种方法来改变溢出菜单图标的颜色。
For example, the overflow icon will be white in normal Toolbar mode. And will turn black on ActionMode. So far, I have managed to change the background of the action mode as well as the title text. But I have yet to find a way to change the overflow menu icon color.
我知道,有可用的一个答案: 变化ActionMode溢图标
I know that there's an answer available: Change ActionMode Overflow icon
我尝试的第一个解决方案,我没能找到溢图标。
I tried the first solution and I wasn't able to find the overflow icon.
第二个解决方案,即使有一个50L的延迟会导致溢出菜单图标闪烁的ActionMode的预期颜色,一个简短的一瞬间,这是非常不和谐的。
The second solution, even with a 50L delay causes the overflow menu icon to flash the ActionMode's intended color for a brief split second that is very jarring.
推荐答案
好家伙请在下面加上一行在你的主题属性
<item name="android:textColorSecondary">@android:color/white</item>
让我知道您的反馈。
Let me know your feedback.
这篇关于AppCompat工具栏:改变溢图标颜色的ActionMode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!