I have a light gray background for the contextual action bar. But on a Nexus 5 I have also a darker overlay and I don't know why :-(
I think the images for the background are okay.
Because you don't have resources for xxhdpi for Action Mode. Use Android Action Bar Styles Generator, generate resources for your Action Bar in the action mode and apply it. It will fix your problem.
Related
I tried to add an icon to the Action Bar, in ShowAsAction I set it to ifRoom. But no matter how, the icon only shows up in the 3 dot menu and never show up in the Action Bar, what are the possible cause of this issue?
I want to show an action bar with icons in both light and dark themes. So I'm wondering whether I need to duplicate all the icon files?
I also wonder why the official icons are either opaque white or black, but the guidelines say its alpha should be 80% and 60% for each theme respectively. Should I change every png?
In other words, is there any simple way to use an action bar with icons that work in both themes?
I peeked through some apps which are somehow optimized for android 5, and I noticed that the ones which have Action Bar, and have a specified color for status bar, have differed those two color. for example in Twitter's Official client, The status bar color is #1c6399 while the color for action bar is #55acee or in "BBC News" app, the status bar is #660000 while the action bar is #990000.
Is there a rule behind this? I mean OK, I find it more reasonable than making them have the same color, but how do I reach that color? for example my action bar color is #6e97b9, what should be the color for my status bar? and in general, what is the rule behind it? or is there any?
It is a good practice google is trying to maintain..
Follow the link below.
http://www.google.com/design/spec/style/color.html
Usually colors having number 500 is used for the Action Bar while colors having number 700 is used for the status bar.
I'm using the compat library to add an action bar to an app. I have set a custom theme which extends Theme.AppCompat and set a background for the action bar and a background for the application. However the action bar icon and title backgrounds seems to be transparent which means the app background is visible through the action bar as you can see below. Any ideas?
Thanks
I am using the ActionBarCompat sample. If our action bar has a dark background, we want to use white-colored icons. But these icons are also used for the system menu items (when they don't fit on the action bar, pre-honeycomb). So the white icons aren't visible on the system menu white background. Example:
What can we do about this? Is there a way to use the dark version of icons when shown on the system menu, and light colored when on the action bar?
Thanks
There are only two ways to handle this issue. Either change the color of your ActionBar, or edit the color of your icons.
I would suggest that best combination for Actionbar and icons would be Red color for Actionbar and white color for your icons.
And how can white icons be visible in white background??? If you remember in Menu icons we have grey background with white icons. That's why they are easily visible in Menu's.