title: SearchView always expanded, in the toolbar?
body: <p>I tried several solutions here in stackoverflow, but none worked for me.</p>
  
  <p>I have the icon in the toolbar and it expands when clicked and opens the activity to be done the search.
  Codes below:</p>
  
  <p>XML Menu:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
  
      &lt;item
          android:id="@+id/item_search"
          android:orderInCategory="200"
          android:title="@string/search"
          android:icon="@drawable/ic_search_24dp"
          app:actionViewClass="android.support.v7.widget.SearchView"
          app:showAsAction="ifRoom|collapseActionView"
          android:iconifiedByDefault="false" /&gt;
  
  &lt;/menu&gt;
  </code></pre>
  
  <p>Activity Code:</p>
  
  <pre><code>class HomeActivity : LoggedActivity&lt;ViewHomeBinding, HomeViewModel&gt;(), HomeView {
  
      // ATTRIBUTES
  
      private var pagerAdapter: HomePagerAdapter? = null
  
      // BASE METHODS
  
      override fun onInject(component: LoggedActivityComponent) = component.inject(this)
  
      override val contentView = R.layout.view_home
  
      override fun onCreateOptionsMenu(menu: Menu): Boolean {
          menuInflater.inflate(R.menu.menu_home, menu)
  
          return super.onCreateOptionsMenu(menu)
      }
  
      override fun onOptionsItemSelected(item: MenuItem): Boolean = when (item.itemId) {
          R.id.item_search -&gt; {
              startActivity(Intent(this, SearchActivity::class.java))
              true
          }
          else -&gt; super.onOptionsItemSelected(item)
      }
  </code></pre>
  
  <p>I wish it would always be expanded.
  And of the white color, since it expands green, is it possible?
  Thank you</p>
  
  <blockquote>
    <p>I tried this in XML; android: iconifiedByDefault = "false" app:
    iconifiedByDefault = "false"</p>
  </blockquote>
  
  <p>EDIT:</p>
  
  <p>Toobar XML in HomeActivity</p>
  
  <p>
  </p>
  
  <pre><code>&lt;data&gt;
      &lt;variable
          name="viewModel"
          type="com.plugapps.zuk.viewmodel.HomeViewModel"/&gt;
  &lt;/data&gt;
  
  &lt;android.support.design.widget.CoordinatorLayout
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:id="@+id/coordinator"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
          android:id="@+id/app_bar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"&gt;
  
          &lt;android.support.v7.widget.Toolbar
              android:id="@+id/toolbar"
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize"
              android:background="?attr/colorPrimary"
              app:popupTheme="@style/ThemeOverlay.AppCompat.Light"&gt;
  
          &lt;/android.support.v7.widget.Toolbar&gt;
  
          &lt;android.support.design.widget.TabLayout
              android:id="@+id/tab_layout"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              app:tabMode="fixed"
              app:tabGravity="fill"/&gt;
  
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
      &lt;android.support.v4.view.ViewPager
          android:id="@+id/view_pager"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          app:layout_behavior="@string/appbar_scrolling_view_behavior"/&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p></p>