Disable auto-dimming based on screen content - android

I have an issue where the font color in a screen of my app changes from white to almost gray. After hours of experimenting I was able to find out that this is caused by Android's auto-dimming feature.
A page of mine starts of as a pretty dark background with a spinner. When data is fetched have plenty cards onscreen(all with white background).
This leads the color of the font in my header to change form grayish to (as intended) white. The change is extreme and very noticeable.
Is there a way to turn off this feature?

Related

Loading appropriate Android app icon depending on dark or light theme

I have an app icon with transparent background. I have 2 variants: black and white.
The issue I have found is that some android phone menu screens have a black background, while some others have a white background.
Therefore the issue I have is that my logo looks invisible on certain phones no matter which i pick.
How do I solve this problem?
Is there a way to use the dark or light variant depending on the theme?

Android Notification smallIcon not displaying properly

So I've been working with Android Notifications and after setting a large image, I found out that my small image is actually not displaying properly.
As you can see on the following screenshot of the lockscreen, the background of the small icon is transparent. I want to set a specific colour there, just like the one Outlook.com is using:
Another example where the small icon shows next to the large one (please take notice of the small icon which is actually displaying, but not really noticable because there is just no background):
I've been thinking about changing the small icon to include the background colour, but obviously the colour would also be shown in the statusbar and that's wrong.
Try setColor() with NotificationCompat.Builder to set the accent color, which should be used by the colored circle behind the icon.

Android - font (only letters) background color

I want to make in my application some meme - type images.
I've found some fonts, which I can use, but one thing, which is connecting them is, that when I'm changing textColor property for TextView, which is contining text, I'm changing contour of letters, not whole letter color. When I'm changing background color, I'm changing whole TextView field background (and I want it to be transparent). And the problem is, that in letter I can see background image of photo, which is under the letter, which is problem, because photos can have different colors and text could be not visible. Is there any possibility, to change background color, but only for letters? Or it is a job for someone who is working with graphics and fonts?
There is a photo, which is from my app, which is showing problem.
And there, what I'm looking for:
(source: canada.com)
It sounds like what you want is text outline or a text shadow. This question has both of those already answered. Or you could instead use solid font types.
It sounds like you want to change the text colour not the background colour.
The thing is fonts are all defined like small bitmaps, if you change the colour only the opaque bits will be colourised never the bit's which were left transparent.
I think your only option is to change font

Android notification icons with color

According to the android iconography documentation here
and also here the icons in the status bar are supposed to be entirely white with transparent background. However, even the built in icons don't all follow this pattern it seems. The signal quality (for wifi and cell), battery indicator, and some others have the holo blue background on some icons on newer devices. Is this color built into the icon itself?
I am looking to implement a status bar icon with my app that will indicate the status of a connection to an external (bluetooth) device. I was planning on doing my company logo (which is a fairly simple, mostly circular shape) filled in with a color to indicate the status of the connection (connected - green, not connected - red). But since I'm not supposed to use a color these seems much more complicated. Is it really that bad to use a non white icon, and if it's so bad why does google do it?
It's convention, like creating accessors for your private fields, but it's not strict that you follow it. That being said, it is a good idea to follow the color scheme of the OS, simply because that way everything looks uniform. Therefore, I would suggest that rather than green and red, you choose holo blue and grey. It is completely your choice as the developer.

Android Nexus One - Can I save energy with color scheme?

I'm wondering what color-scheme is more energy-saving for AMOLED display?
I've already decided to manage c-scheme according to ambient light, thanks to this post:
Somewhat-proof, the link posted by nickf: Ironic Sans: Ow My Eyes. If you read that in a well lit room, the black-on-white will be the most pleasant to read. If you read it in a dark room, the white-on-black will be nicer.
But if I want to save battery power, should I use bright content with dark background or vice versa?
Is it possible anyway (they say it's not working for simple LCD)?
Yes, you can. The best you can do is use a red on black color scheme. Blue is more expensive than green, green more than red. White is the worst :)
To give you an idea, a static blue wallpaper (for instance a jellyfish in an aquarium) consumes more battery than the 3D galaxy live wallpaper.
Well, that wikipedia article you linked to says:
For example, our measurement shows that a commercial QVGA OLED display consumes 3 and 0.7 Watts showing black text on a white background and white text on a black background, respectively.
So according to that, a white-on-black scheme would use less power than a black-on-white scheme.
The AnandTech article you linked to is talking about regular LCD monitors, which is quite different technology to AMOLED.
I guess the best thing to do is give it a try: try on one colour scheme and see how long you can go between charges, then try on a different scheme.
Black!! I Google in black on my phone at http://bGoog.com to make my battery last longer. Since using black backgrounds I recharge my phone a lot less! There's info on it at bGoog.com/about
The more black on your screen, the better. Black on black would save a whole lot of power on OLED screens, but is not too readable. So you find a balance between readability and power saving, with as much black as possible.
In order from least to most power:
All black
Single colour (eg red) text on black
Compound colour (eg yellow, cyan, white) text on black
Any background colour other than black
Note that none of this applies to LCD screens, only OLED. For LCD, the difference is negligible to the point you can forget about it. Sometimes, all-white even uses slightly less power, but it is nowhere near as much difference as with OLED.

Categories

Resources