Search code examples
androidandroid-studioandroid-drawableandroid-imageandroid-icons

Using Android Studio default search icon for searchView


Can't seem to find the right search icon for the searchView for my actionBar. Does Android Studio even offer a non-bad one or do I have to create my own?

Here's what's offered in Android Studio: ( I want to have all white icons)

android:icon="@android:drawable/ic_menu_search" 

enter image description here

This search icon doesn't work for me.

===============================================

Here's another Android Studio icon that won't work with my white icons:

android:icon="@android:drawable/ic_search_category_default"

enter image description here

==============================================

android:icon="@drawable/ic_search_black_24dp"

The final Android Studio available search icon from Image Asset Folder --> Clip Art. It's finally a white icon but it's positioned higher than the settings icon. Don't know why.

enter image description here

I need a white icon like the last one but to be in the same position as the settings Icon. Is there any way to lower icon without making it look odd on other phones? Do I have to create my own icon and if so, what sizes? Why does Android Studio put the white search Icon so high up compared to others?


Solution

  • You can also access this list of icons in https://material.io/icons/ from Android Studio

    enter image description here

    enter image description here