I'm stuck at a very ridiculous thing.
I want to remove the divider below the action bar shown in the picture.
how can I do it?
P.S: I want to use my app for API level 8 too
There's a great tool you can use for generating an ActionBarSherlock compatible Theme. Go to the following link and initialize it with the following settings:
Style compatibility: Sherlock
Base theme: Dark
ActionBar style: Solid
This will remove the line below the ActionBar and allow you to choose a solid color for the ActionBar itself. If you simply wanted to change the color of that line, you can set the ActionBar style to Transparent and change the Accent color (this is the color chosen for that line)
http://jgilfelt.github.com/android-actionbarstylegenerator/
Related
I want to use an Theme.AppCompat theme that uses dark nav bar icons as defaults, are there any Themes that do this? I can only see AppCompat.Light themes when I use the dot operator.
AppCompat.Light is right because it means the color of the AppBar. If it's a light color, use light and the Icons and Texts will be black. If it's a dark color, use AppCompat and the Icons and Texts will be white.
I am using appCompat v21 and I want to change color of actionbar to black while actionbar tabs should be white. Setting colorPrimary changes colors of both actionbar and tabs. I have tried setting theme to light and then using actionBarStyle with black background but this apparently doesnt work in appcompat v21.
What is the best way to accomplish this? Thanks in forward
I am applying a style in my Android app where the main colour is the orange. So I would like to set up a theme where the main colour is orange instead of the blue one in Holo theme. Is there a way to change globally the theme colours?
For example, I would like to change the drawable which is applied while pressing the ActionBarDrawerToggle. How could I change that drawable? And the one with the caret pressed to go to a parent activity?
I am developing an Android app for Level 10 API and using Support Library v7.
Thanks in advance.
You can use a tool such as Android Action Bar Style Generator to change the coloring of the action bar and the accent color used for touch highlighting (although note the Kitkat styling is light gray touch highlighting rather than colored highlighting).
Similarly, for the Navigation Drawer icon itself you can use the Navigation Drawer Indicator Generator to colorize the drawer itself, although generally you should consider coloring the Action Bar with your primary color and using the default holo light/dark for icons.
I am making an app using Holo dark theme, though I want the action bar to be the same grey like color in Holo light/ default theme. What is the color code that i can use for that?
Thanks
All colors are stored here :
https://github.com/android/platform_frameworks_base/blob/master/core/res/res/values/colors.xml
The color you looking for is : #fff3f3f3
#ddd
I couldn't figure out how to reference the one already defined, so I just made my own.
<color name="action_bar_background">#ddd</color>
I changed the colors of the SherlockActionBar using the Android Action Bar Style Generator.
I also changed the possible things with the Holo Colors Generator and all these styles work.
But when I get an AlertDialog in the PreferencesActivitiv(to change the settings), I still have the blue Holo accent. I found this link, which helps me to create a custom AlertDialogs:
How can I change the color of AlertDialog title and the color of the line under it
But i dont't know the attributes to set colors for the dialog in a theme. So that the dialogs are consistent in the whole app.
there is a library which does exactly what you need:
https://github.com/inmite/android-styled-dialogs