Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
278 views
in Technique[技术] by (71.8m points)

Android 5.0: how to change recent apps title color?

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

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: 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.

enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can't force the text color, it is auto generated (either white/black) based on your colorPrimary color.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...