Android 5.0:如何更改最近应用的标题颜色? [英] Android 5.0: how to change recent apps title color?
问题描述
我正在使用 AppCompat 并且我的主题正在扩展 Theme.AppCompat.Light.DarkActionBar
.
I'm using AppCompat and my theme is extending Theme.AppCompat.Light.DarkActionBar
.
在 Android 5 Lollipop 中,当我按下最近使用的应用程序按钮时,我的应用程序在 ActionBar 中显示为深色标题,而不是白色标题.
When in Android 5 Lollipop and I press the recent apps button, my app appears with a dark title instead of a white title in the ActionBar.
当我进入应用程序时,一切看起来都很好.
When I'm inside the app everything looks fine.
如何更改最近应用视图中的标题颜色?
What can I do to change the title color in the recent apps view?
EDIT:刚刚发现如果我使用较深的 colorPrimary
,标题会变成白色.我仍然需要一种方法来强制使用原始颜色的白色标题.
EDIT: just figured out that if I use a darker colorPrimary
, the title becomes white. I still need a way to force the white title with the original color.
推荐答案
您不能强制使用文本颜色,它是根据您的 colorPrimary
颜色自动生成的(白色/黑色).
You can't force the text color, it is auto generated (either white/black) based on your colorPrimary
color.
这篇关于Android 5.0:如何更改最近应用的标题颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!