How to customize the “up” button when the searchView is being expanded?

前端 未结 3 1784
旧巷少年郎
旧巷少年郎 2021-02-20 03:00

Background

My app has the ability to search for items (which are other apps) using the SearchView on the ActionBar.

The app uses the support library of Google,

3条回答
  •  滥情空心
    2021-02-20 03:46

    It seems like a known issue: https://code.google.com/p/android/issues/detail?id=78346 .

    workaround is here: https://code.google.com/p/android/issues/detail?id=78346#c5 , meaning:

    values-21/themes.xml:

    
    

    That's it. Hope it gets fixed later.

    In order to customize it, I assume I can use it, and also choose the color using "colorControlNormal"

提交回复
热议问题