Android - change color of menu icon - android

How do I change the color of the menu icon ?

I think it depends on how you have achieved that menu icon in the first place.
If you have used a android.support.design.widget.NavigationView then you can use app:itemIconTint in the xml or set it in the Java. See the following for more detail.
https://developer.android.com/reference/android/support/design/widget/NavigationView.html
If you are using an actionbar have you looked at actionBar.setHomeAsUpIndicator();
https://developer.android.com/reference/android/support/v7/app/ActionBar.html#setHomeAsUpIndicator(int)
How are you getting that menu icon to appear?

You need to create a customized menu icon:
Have a look here: Icon Design Guidelines

Related

Color Icon in the Bottom Navigation Activity

Question
how Can I use colored icon in the Bottom Navigation Activity? I have a logo which I placed in the drawable folder but in the navigation bar its showing in black and white color instead of regular color as I copied in the drawable folder. Please share your thoughts. I am using kotlin language.
You can try using bottomNavigationView.setItemIconTintList(null);. This may work. But still, I'll suggest using a different library as mentioned in my comment.
You have to provide color in onClick listener using
window.navigationBarColor = Color.GREEN
Use Color.parseColor() to set some custom color to Navigation Bar

How to set only image as menu item in android

I have created options menu it has some attributes like android:I'd, android : title,android:icon etc how can I set a image as android option menu and also I want title of the item below the icon not beside the icon
You cannot do this easily and you should not. What you explain sounds more like Tabs to me, which you could use instead. With these you'll get text below the icon out of the box.

Where is the default android "Up button" icon stored?

I need to add a navigation icon to my Toolbar, and I cannot use an ActionBar. Where is the default up button you'd get from using an ActionBar with homeAsUp enabled?
You can find loads of material design icons here, the pack also contains the up arrow.
You can find the default icons for android in \path-to-your-android-sdk-folder\platforms\android-xx\data\res, your question is not very clear so if my answer doesn't fit, please give more details on what you want to realize , and maybe with illustrations.

Styling Android ActionBar

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();

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