Search code examples
androidandroid-actionbaricons

How to add actionbar white icon in android


I'm trying to add actionbar icon into the android studio and i've do this:

Go to ImageAssets and set the icon for Actionbar and TabIcons and then refer that in menu icon.

But, it's a little bit black when the app compiled, like this:

enter image description here

as you can see, search icon is a little bit black.

So, what is the problem?

I've tried this with copy pasting the icon into drawable(without adding in ImageAssets) and it was white but, it's haven't any good resolution or quality.

How we can add a right or correct way for add actionbar icon like White color action icon into the actionbar?


Solution

  • Solved with android:icon="@drawable/abc_ic_search_api_mtrl_alpha" Private resource

    And i think it's an android Studio bug which is when we are adding this, it's a little bit black.