安卓5.0:如何改变应用程序的最新标题颜色?应用程序、颜色、标题、最新

2023-09-04 02:52:44 作者:从此,记忆里只有你。

我用AppCompat,我的主题是扩大 Theme.AppCompat.Light.DarkActionBar

I'm using AppCompat and my theme is extending Theme.AppCompat.Light.DarkActionBar.

当Android中5棒棒堂我preSS最近应用程序按钮,我的应用程序会出现一个暗的标题,而不是白色的标题,在动作条。

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?

修改:刚刚想通了,如果我使用较暗的 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.