So, I've this menu.xml with the searchView widget:
<item android:id="@+id/action_search"
android:title="@string/action_search"
app:showAsAction="ifRoom|collapseActionView"
app:actionViewClass="android.support.v7.widget.SearchView" />
And I'm trying to style it (queryHint and icon properties) in the styles xml:
<resources>
<!-- Base App Theme -->
<style name="AppTheme" parent="CustomTheme.Base" />
<style name="CustomTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="searchViewStyle">@style/CustomTheme.Base.SearchView</item>
</style>
<style name="CustomTheme.Base.SearchView" parent="Widget.AppCompat.SearchView">
<item name="searchIcon">@drawable/ic_search</item>
<item name="queryHint">@string/search_hint</item>
</style>
</resources>
And the result is a searchView widget with no icon and no personalized queryHint... I've been searching on SO and I end up trying this solution, but everytime I try to prefix the searchIcon or queryHint items with my app namespace I get this error on launch:
Error:(26, 21) No resource found that matches the given name: attr 'app:searchIcon'.
Error:(26, 21) No resource found that matches the given name: attr 'app:queryHint '.