Search Widget in action bar not displaying the default text
<p>Hi the search widget in the action bar of my application is not displaying the default text for some reason. I am sure I might be missing something.
The code looks like below:-</p>

<pre><code> @Override
public boolean onCreateOptionsMenu(Menu menu) {
    getMenuInflater().inflate(R.menu.activity_main, menu);
    try{
        SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();
        searchView.setOnQueryTextListener(this);
        }catch(Exception e){
            Log.v(TAG,"inflated"+e.getMessage()+"--"+e.getClass()+"-"+e.getClass());
        }
    return true;
}
</code></pre>

<p>menu/activity_main</p>

<pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;

   &lt;item android:id="@+id/action_search"
      android:title="@string/search_title"
      android:icon="@android:drawable/ic_menu_search"
      android:showAsAction="ifRoom|collapseActionView"
      android:actionViewClass="android.widget.SearchView" /&gt;
 &lt;/menu&gt;
</code></pre>

<p>values/strings.xml</p>

<pre><code>&lt;resources&gt;
&lt;string name="search_title"&gt;Search Data&lt;/string&gt;
&lt;/resources&gt;
</code></pre>

<p>The search widget is working perfectly , the only thing is the default text "Search Data" is not showing..
Can someone tell me what am I doing wrong</p>
