Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

[Question] about the action's icon color #348

Closed
bau720123 opened this issue Nov 17, 2015 · 4 comments
Closed

[Question] about the action's icon color #348

bau720123 opened this issue Nov 17, 2015 · 4 comments
Labels

Comments

@bau720123
Copy link

according to this
#345
thanks @macdonst let me know the "white" situation

well,it is my screenshot,left side is Android 5.1.1,right side is Android 4.4.2
s__38993922
all code all the same
the icon in 5.1.1 will become gray but Android 4.4.2 is normal
is it a Android 5 "feature" just like the "white" situation ? (what a ugly feature XD...)

@fredgalvao
Copy link
Collaborator

Android app built with target-sdk > 20, running on a device with android 5.0 or higher

Just as is the case on #345, as explained by @macdonst , every system wide icon will be manipulated by android so that it is composed of transparent and a single main color pixels. On stock android, these colors are white for the notification icons, and gray for action icons. That applies to any and every app, unless they are creating custom notification objects from the start.

Android app built with target-sdk > 20, running on a device with android 4.4 or lower

The new apis are non-existant, so the icons will be shown AS IS.

Android app built with target-sdk = 20, running on a device with android 5.0 or higher

Although the new apis are present, the app is demanding to be treated as if the device was on android 4.4 or lower, so compatibility mode will apply, with the old (4.4) api taking place.

Android app built with target-sdk = 20, running on a device with android 4.4 or lower

The app is at home, there is no compatibility mode in place, so the icons will be shown AS IS.

@telemakhos
Copy link

@fredgalvao Great explanation! I was looking for this... thanks

@bau720123
Copy link
Author

awesome explanation @fredgalvao
maybe you can update the readme
thanks your help and close it

@lock
Copy link

lock bot commented Jun 5, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

3 participants