Android SearchView not showing text when typing
<p>I realized <code>SearchView</code> like Google says:</p>

<p>Created <code>searchable.xml</code> in <code>res/xml</code>:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;searchable xmlns:android="http://schemas.android.com/apk/res/android"
    android:label="@string/app_name"
    android:hint="Search"
    android:voiceSearchMode="showVoiceSearchButton|launchRecognizer" /&gt;
</code></pre>

<p>Created menu item in <code>res/menu/second_activity_menu</code>:</p>

<pre><code>&lt;item
    android:id="@+id/second_toolbar_search"
    android:icon="@mipmap/ic_search_black_24dp"
    android:orderInCategory="100"
    android:title="@string/search"
    app:showAsAction="collapseActionView|ifRoom"
    app:actionViewClass="android.support.v7.widget.SearchView" /&gt;
</code></pre>

<p>Change my <code>AndroidManifest</code>:</p>

<pre><code>&lt;activity android:name=".SecondActivity"&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>And realized my <code>SecondActivity</code> class which extends <code>AppCompatActivity</code>:</p>

<pre><code>@Override
public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.second_activity_menu, menu);

    SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);
    SearchView searchView = (SearchView) menu.findItem(R.id.second_toolbar_search).getActionView();

    searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
    searchView.setIconifiedByDefault(false);
    return true;
}
</code></pre>

<p>As a result I have this:</p>

<p><a href="https://i.stack.imgur.com/oPGmo.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oPGmo.jpg" alt="Toolbar"></a></p>

<p>After clicling on the search icon I have this:</p>

<p><a href="https://i.stack.imgur.com/phzpj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/phzpj.jpg" alt="SearchView"></a></p>

<p>When I start typing something, it doesn't show and it doesn't show "clear" icon and mic icon either. But I added them in <code>searchable.xml</code>. </p>

<p>Thanks for any ideas or code.</p>

<p><strong>ADD:</strong> maybe the reason is with toolbar style?</p>

<p><strong>ADD 2:</strong> toolbar, but I don't think that it is nessesary</p>

<pre><code>&lt;android.support.v7.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:minHeight="?attr/actionBarSize"
        local:theme="@style/AppTheme" /&gt;
</code></pre>