I'm facing the following problem:
I'm using a custom font for all my TextViews, Buttons, EditTexts etc.
Typeface myTypeface = Typeface.createFromAsset(getContext().getAssets(), "fonts/" + fontName);
setTypeface(myTypeface);
The only View which hasn't the custom font is the SearchView Widget (android.support.v7.widget.SearchView), which is added to the menu via xml.
menu.xml
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/menu_item_message_search"
android:title="@string/search_placeholder"
android:icon="@android:drawable/ic_menu_search"
app:showAsAction="ifRoom|collapseActionView"
app:actionViewClass="android.support.v7.widget.SearchView" />
</menu>
Any idea how to set a custom font to this view?
Thank you :)