Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android 5.0: howto change Overview Screen Task Title background color

The new Android 5.0 Lollipop Overview Screen features each App's Task with a screenshot and a (by default) grey title bar.

Some Lollipop Apps (For example the new Play Store) use different colours. How can the colour of the Overview Screen title background be changed?

Android Overview Screen, Creative Commons Attribution 2.5

like image 520
whlk Avatar asked Oct 21 '14 20:10

whlk


People also ask

How do I change the background color on my Android home screen?

On your phone, go to the Settings app. Tap Wallpaper & style. To change the color palette of your wallpaper, tap Wallpaper colors and select the color palette you like. To change the color of your tabs to a specific color, tap Basic colors and select the color you like.

What is the overview screen?

The Recents screen (also referred to as the Overview screen, recent task list, or recent apps) is a system-level UI that lists recently accessed activities and tasks. The user can navigate through the list and select a task to resume, or the user can remove a task from the list by swiping it away.

How do you change the color of your apps on the screen?

Search for and select Open App, and then, on the New Shortcut page, tap Choose. Locate the app whose appearance you want to change. Back on the New Shortcut page, you'll see the app name; tap More (three dots), change the app's name, tap its icon, select Color, and choose a new color.


1 Answers

In general, if you're targeting Material then you should set colorPrimary (action bar, recents), colorPrimaryDark (status bar), and colorAccent (check boxes, progress bars, etc) in your theme.

That said, you can dynamically change the recents color to be something else using:

TaskDescription taskDesc = new TaskDescription(myTitle, myIcon, myColor);
myActivity.setTaskDescription(taskDesc);
like image 193
alanv Avatar answered Oct 12 '22 21:10

alanv