Text color of SearchView in ActionBar with ActionBarSherlock

前端 未结 2 1207
面向向阳花
面向向阳花 2021-01-14 01:17

I want to change the color of a text in an ActionBarSherlock SearchView, so I found this on StackOverflow:

AutoCompleteTextView searchText = (Au         


        
2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-14 02:05

    Change and apply your styles as follows:

    1. Overwrite SearchViewStyle that defines relevant style.

      
      
    2. Add this style definition to your app theme.

      
      
    3. Apply this theme in your Manifest (android:theme="CustomTheme").

    Hope this helps ... Cheers!

    p.s. search for SearchViewStyle in ABS style definitions (XML files). This way you can follow up available styles using Ctrl+click on definitions.

提交回复
热议问题