Text input in SearchView doesn't show
<p>I noticed a couple days ago that inputting text in my <code>SearchView</code> doesn't show up. Maybe this problem started longer ago and I hadn't noticed it, but I know that everything was working well when I first set up search functionality.</p>

<p>Here is a screenshot (I have already entered text, and you can see that it is not showing):</p>

<p><a href="https://i.stack.imgur.com/7UWfI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7UWfI.png" alt="enter image description here"></a></p>

<p>I have already tried to change the colour of the text on the <code>SearchView</code>, with <a href="https://stackoverflow.com/q/11321129/4230345">this SO question</a>, and I've also tried changing the text colour in my searchable configuration XML file. After I found that none of these work, I undid my changes so that you can see the code I currently have below:</p>

<p><strong>MainActivity.java</strong></p>

<pre><code>@Override
public boolean onCreateOptionsMenu(Menu) { 

    ...

    // Associate searchable configuration with the SearchView
    SearchManager searchManager = (SearchManager) getSystemService(SEARCH_SERVICE);
    MenuItem searchMenuItem = menu.findItem(R.id.action_search);
    SearchView searchView = (SearchView) searchMenuItem.getActionView();
    searchView.setSearchableInfo(searchManager.getSearchableInfo(new ComponentName(this, SearchResultsActivity.class)));
    // Note: getSearchableInfo(getComponentName()) will not work on all flavours
    // because of a difference in app IDs

}
</code></pre>

<p>Note that I've used <code>new ComponentName(...)</code> instead of <code>getSearchableInfo(getComponentName())</code> since I use different package names in my different flavours.</p>

<p>The activity above is where the <code>SearchView</code> is displayed. The results are shown in another activity.</p>

<p><strong>searchable.xml</strong></p>

<pre><code>&lt;searchable xmlns:android="http://schemas.android.com/apk/res/android"
    android:label="@string/app_name"
    android:hint="@string/search_hint" /&gt;
</code></pre>

<p><strong>AndroidManifest.xml</strong></p>

<pre><code>    ...

    &lt;activity
        android:name=".ui.MainActivity"
        android:label="@string/title_activity_main"
        android:theme="@style/AppTheme"&gt;
        &lt;meta-data
            android:name="android.app.default_searchable"
            android:value=".SearchResultsActivity" /&gt;
    &lt;/activity&gt;

    ...

    &lt;activity
        android:name=".ui.filter.SearchResultsActivity"
        android:label="@string/title_activity_search_results"
        android:parentActivityName=".ui.MainActivity"
        android:theme="@style/AppTheme.Search"&gt;
        &lt;meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="com.companyname.appname.ui.MainActivity" /&gt;

        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.SEARCH" /&gt;
        &lt;/intent-filter&gt;

        &lt;meta-data
            android:name="android.app.searchable"
            android:resource="@xml/searchable" /&gt;
    &lt;/activity&gt;

    ...
</code></pre>

<p><strong>styles.xml</strong>  (the activity containing the <code>SearchView</code> uses <code>AppTheme.NavDrawer</code>)</p>

<pre><code>...

&lt;style name="Base.AppTheme" parent="Theme.AppCompat.Light.NoActionBar"&gt;
    &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;
    &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
    &lt;item name="colorButtonNormal"&gt;?colorAccent&lt;/item&gt;
&lt;/style&gt;

&lt;style name="AppTheme" parent="Base.AppTheme"&gt;
    &lt;item name="colorPrimary"&gt;@color/theme_primary&lt;/item&gt;
    &lt;item name="colorPrimaryDark"&gt;@color/theme_primary_dark&lt;/item&gt;
    &lt;item name="colorAccent"&gt;@color/theme_accent&lt;/item&gt;
&lt;/style&gt;

&lt;style name="AppTheme.NavDrawer"&gt;
    &lt;item name="android:windowBackground"&gt;@color/window_background&lt;/item&gt;
&lt;/style&gt;

...
</code></pre>

<p><strong>v21/styles.xml</strong></p>

<pre><code>&lt;style name="AppTheme.NavDrawer"&gt;
    &lt;item name="android:windowBackground"&gt;@color/window_background&lt;/item&gt;
    &lt;item name="android:windowDrawsSystemBarBackgrounds"&gt;true&lt;/item&gt;
    &lt;item name="android:statusBarColor"&gt;@android:color/transparent&lt;/item&gt;
&lt;/style&gt;

....
</code></pre>

<p><strong>activity_main_filterable.xml</strong> (the layout that my activity uses)</p>

<pre><code>&lt;android.support.v4.widget.DrawerLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/drawerLayout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true" &gt;

    &lt;include layout="@layout/activity_main_content" /&gt;

    &lt;include layout="@layout/navdrawer"
    android:id="@+id/navigationView" /&gt;

    &lt;include layout="@layout/filter_drawer"
        android:id="@+id/filter_drawer" /&gt;

&lt;/android.support.v4.widget.DrawerLayout&gt;
</code></pre>

<p><strong>activity_main_content.xml</strong></p>

<pre><code>&lt;RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:ads="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"&gt;

    &lt;android.support.design.widget.CoordinatorLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@+id/adView"&gt;
        &lt;android.support.design.widget.AppBarLayout
            android:fitsSystemWindows="true"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" &gt;
            &lt;android.support.v7.widget.Toolbar
                android:id="@+id/toolbar"
                style="@style/AppTheme.Toolbar"
                android:layout_height="wrap_content"
                android:layout_width="match_parent"
                app:layout_scrollFlags="scroll|enterAlways"/&gt;
            &lt;include layout="@layout/blank" /&gt; &lt;!-- This is to prevent bugs --&gt;
        &lt;/android.support.design.widget.AppBarLayout&gt;

        &lt;include layout="@layout/fragment_misc_no_results"
        android:id="@+id/fragment_no_results"/&gt;

        &lt;android.support.v7.widget.RecyclerView
            android:id="@+id/recyclerView"
            style="@style/AppTheme.RecyclerView.StandardList"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:layout_behavior="@string/appbar_scrolling_view_behavior" /&gt;
    &lt;/android.support.design.widget.CoordinatorLayout&gt;

    &lt;com.google.android.gms.ads.AdView
        android:id="@+id/adView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        ads:adSize="SMART_BANNER"
        ads:adUnitId="@string/banner_ad_unit_id" /&gt;
&lt;/RelativeLayout&gt;
</code></pre>

<p>Any ideas on what might be going on or how I should solve it?</p>