Styling Android ActionBar - android

The image will explain everything i need ;)
I'm looking for the exactly same style ( with the thin line also that is near to their logo) (keep in mind i have the logo drawable file )
UPDATE
Now i'm getting exactly what i want but i have one bug yet.
How to remove the arrow highilited in red? keep in mind i'm extending Sliding Menu

Have you tried getActionBar().setLogo( R.drawable.logo );

you can use getActionbar().setDisplayUseLogoEnabled(false); to remove the icon from the actionbar and then getActionBar().setDisplayShowHomeEnabled(true) to enable the arrow but the image you show looks like they created an image with an arrow and replaces the icon with that arrow image.
so in other words you would use this
getActionBar().setIcon();

Related

ActionBar tabs have space before them

I have an app that has transparent actionBar and is using AppCompat support library. My problem is that I want to align my ActionBarTabs to the very left but there is some space left and I want to get rid of it. Also, how to properly align the icons with the rest ? Is that in the size of icons ?
Here is the screenshot of my app:
If you use a 24x24 icon you will be fine. Try go to here download any icons you want and use the icons with 24dp.png in filename and see how it looks.

How to make Circular Logo in Action Bar?

My requirement is to make Circular Icon to ActionBar. I used custom view to display circular image(you can see in the screenshot.) I want to use Home icon(In this case, green android icon) as a circular image. How can I make Home icon as a Circular Image??
Note: In my case I'm downloading images from Server and setting it to ActionBar using setLogo() or setIcon() method.
Make the image default logo of your application.
Change it in the manifest file or the drawable folder.
Action bar logo is mostly your application logo by default. So either Change your application logo to circular or whatever. If you want to change the app icon (logo). Use setLogo(int) or setLogo(Drawable) method of ActionBar. Don't forget to call setDisplayUseLogoEnabled(true)

How to remove Navigation drawer icon

How to remove pointed icon in Navigation Drawer, I just playing with Navigation Drawer, I just wanted to maintain only one icon.
I had same issue and I solved with adding this line in onCreate():
getActionBar().setDisplayHomeAsUpEnabled(false);
it will hide icon from navigation drawer.
Which implementation are you using for the Navigation Drawer?
Also, why do you want to remove it? You could keep the icon there and use an actual icon instead of one trying to show that it is a menu next to your "Home" text.
Is it a bit too late for answer?
1 way to remove the 3 stripes from the app is
replace the ic_drawer.png in every drawable folder with nothing (eg. with transparent icon)
You also can replace with any icon you want too.

ActionbarSherlock want to insert an image inbetween icon and Tabs

I have a tablet layout using ABS.
The Home (app) icon is displayed and my 4 tabs are shown to the right of it.
I'd like to insert an image (for advertising) inbetween the icon and tabs.
Does anybody know if it can be done?
Thanks in advance.
You can't insert an image between the icon and the tabs, but you could:
A. Use a logo drawable which has the icon and ad in it -- then add this by setting the android:logo attribute on your application or activity to your logo drawable.
or
B. Use a custom view and set this on the ActionBar with setCustomView(View view).

Android ActionBar (Sherlock) - Changing menu icon color / transparency

Is there a way to make to change the color of the 3 dots of the menu icon?
I'd like to make them completely white without any transparency but haven't found anything in the android styles/themes?
FYI: I'm using actionbarsherlock.
Thanks in advance :)
this is because they aren't made in the code just search the image com_actionbarsherlock/res/drawable-hdpi/abs__list_divider_holo_light.9.png in your drawable directory there you can change the color of this image.

Categories

Resources