I'm creating my own remote view for the status bar(notification center). I want the remote view to have the same background color as the other notifications and I want it to be consistent across devices, e.g. Samsung and stock Android.
The only layout information I managed to find was under \android-sdk\platforms\android-14\data\res\layout\status_bar_latest_event_content.xml
In addition I found icon guidelines however I couldn't find anything related to background color.
I played with Photoshop and found the default color for Stock Android (#111111), however I don't want to hard code it.
When not using any background color the default that I get is grayish (see attachment)
Any suggestions ?
Related
The app itself works completely fine. My question is that on the launching of the app itself, the screen is the Unity default blue for a quick second or so before changing to the black of my first scene.
How do I change this color to be black on startup?
You can change this by going to File --> Build Settings --> Player Settings --> Splash Image --> Background --> Background Color.
From there you can change the background color. You can also change the image, animation type and overlay opacity from there.
Note that there are things you may not be able to change there unless you have Pro license.
EDIT:
Updated to be more detailed of where to change stuff
First change the Splash Image:
There are more options for iOS platform but this settings can still be found in the menu I mentioned above.
If iOS, select iOS as your platform and you can change your Background Color from there:
You should then change the Lunch Screen type from there. Set it to None if you want it to be gone.
If the color does not still change, you can create a Texture with a color of your choice and add it to the Mobile Splash Screen slot:
I believe the OP was looking for the Background Color of the Launch Screens as indicated in these screenshots.
This is taken from an iOS build setting panel. We've observed odd behavior with no textures at all (even though that is what we want), so we use single-pixel, solid-color images as well as a background color to match.
These fields are not made available in the PC/Android build windows, so not 100% sure what the equivalent would be - beyond using flat-colored images. Either way, it is these elements that are used prior to loading your scenes.
I think you are talking about the camera background color. You can set it up in your main camera to black. You can find the camera documentation here.
As we known that Android lollipop force set the notification background color to white, so we can set the style of TextView according to different sdk version by putting style.xml in folder values-v21.
So here comes my question, on some third party ROMs, for example, the EMUI developed by Huawei tech co., the background of notification is not white(nearly black), by setting style to
android:TextAppearance.Material.Notification.Title
the color of the text is almost black, as a result, we cannot see the text clearly. I had been searching the internet for almost two days but find nothing helps.
I am trying to get the color of the notification background and set the text color dynamically, but I don't know how to accomplish this.
Need your help, thanks a lot.
Ok, so I just use the official API to set the notification info, that would inflate the default notification layout (status_bar_latest_event_content.xml)instead of my custom layout.
The rom changed the default background and text-color of the status_bar_latest_event_content.xml, but it wouldn't (or can't) change the custom layout.
mBuilder.setLargeIcon(combineBitmap).setContentText(notifyString).setSubText("fff");
remove the android:targetSdkVersion="21" from manifest.xml. it will work! and from this there is no prob at all in your apk it just a trick i apply this and i found colorful icon in notification and all features will remain same which u earlier use
I'm struggling with creating a custom notification whose expanded view is defined by a RemoteView using a bigContentView.
I'd like for this notification to look exactly like a default notification however I'm having issues achieving this across all platforms.
I can pull the font size and color of the title and description using #android:style/TextAppearance.StatusBar.EventContent.Title however I can't seem to find a way to determine what positioning to use for those titles and descriptions (margins, padding).
I also can't seem to determine what icon size or background to use for the icon. For example on some devices, there is a light blue background that appears behind the notification icon, but on Samsungs this doesn't seem to be the case.
In my app, I will have a ListView with read and unread items, so I would like to use the same colors than the latest AOSP.
The 2 grey color shades of the messaging app sounds quite correct and I would like to know where I can have a look in Android source code to find the exact same grey. (read = white?)
Note: using a screenshot and a color picker is not acceptable, I don't want to "guess" the correct hexadecimal code.
I am totally aware that I could use my own colors, but using the system one sounds better.
The Android design website doesn't give me any clue at the color section: http://developer.android.com/design/style/color.html
Any idea/suggestion?
The lighter color is: #FFFFFF
The darker color is: #EEEEEE
I use the Eye Dropper Chrome Extension to figure out color codes from any web page
I recently ran into a problem with my app, On most android phones I have encountered, the UI seems to be mostly light colored. Now though, it seems phones are making a switch over to a darker UI(droid x). Now I found this to be a problem for instance with spinners. I have not set a font color on my spinner, but it gets defaulted to black on all the UI's I have tested on, making it harder to read on the darker UI's. What is the best way to handle this? Pick a neutral color? Design for each UI? Or is there a way to set the font color so the phone's UI can pick it up and set it to their default color?
I had the same problem. I have created a custom theme as a workaround.
See Comment #8 of this link
http://code.google.com/p/android/issues/detail?id=5237