Android 5.0: change settings Screen overview Task name Background color

The new Android 5.0 Lollipop Screen Overview includes every application task with a screenshot and (by default) a gray title.

Some Lollipop apps (like the new Play Store) use different colors. How to change the background color of the title of the overview screen?

Android Overview Screen, Creative Commons Attribution 2.5

+7
android android-5.0-lollipop android-theme
source share
1 answer

In general, if you are targeting stuff, then you should set colorPrimary (action bar, replays), colorPrimaryDark (status bar) and colorAccent (flags, progress indicators, etc.) in your theme.

However, you can dynamically change the color of the retentates using something else:

 TaskDescription taskDesc = new TaskDescription(myTitle, myIcon, myColor); myActivity.setTaskDescription(taskDesc); 
+19
source share

All Articles