SearchView hint not showing : <p>I'm trying to display hint text in a search view in my Main Activity. The onqueryTextSubmit launches another activity called SearchResultsActivity which will display the results of the query. My problem is that I cannot display the hint text. My searchable.xml code</p>

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

<p>and the manifest code
    
    </p>

<pre><code>&lt;application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"&gt;
    &lt;activity android:name=".MainActivity"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.SEARCH"/&gt;
            &lt;action android:name="android.intent.action.MAIN"/&gt;

            &lt;category android:name="android.intent.category.LAUNCHER"/&gt;
        &lt;/intent-filter&gt;

        &lt;meta-data
            android:name="android.app.default_searchable1"
            android:value=".SearchResultsActivity"
            android:resource="@xml/searchable"/&gt;
    &lt;/activity&gt;
    &lt;activity android:name=".SearchResultsActivity"&gt;
        &lt;meta-data android:name="android.app.searchable"
                   android:resource="@xml/searchable"&gt;
        &lt;/meta-data&gt;
    &lt;/activity&gt;
&lt;/application&gt;
&lt;/manifest&gt;
</code></pre>

<p>and finaly my onQueryTextSubmit code</p>

<pre><code>@Override
        public boolean onQueryTextSubmit(String query)
        {

            Anniversaries tempResults;
            tempResults = mainAnniversariesManager.searchManager.searchAnniversaries(query);

            if (tempResults.entries.size() == 0)
            {
                snackbar = Snackbar.make(findViewById(R.id.coordinator), getString(R.string.no_results_found) + query, Snackbar.LENGTH_INDEFINITE);
                snackbar.show();
                return true;
            } else
            {
                snackbar = null;
                if (!searchView.isIconified())
                {
                    searchView.setIconified(true);
                }
                menuItem.collapseActionView();

                Intent intent=new Intent(getApplicationContext(),SearchResultsActivity.class);
                Bundle args=new Bundle();
                args.putSerializable("serialized_Anniversaries",tempResults);
                intent.putExtra("args",args);
                startActivity(intent);

                return false;
            }
        }
</code></pre>

<p>Thanks in advance</p>
