title: Button not showing android studio
body: <p>If i put the button before appbar it does not show up. If i put it inside, it shows up but it does not fit properly (height is under imageview and the two can not be in the same height). I tried different layouts other than coordinatorlayout and it hapens again there too.</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      android:alpha=&quot;1&quot;
      tools:context=&quot;.MainActivity&quot;&gt;
  
  
      &lt;ImageButton
          android:id=&quot;@+id/search_button&quot;
          android:layout_width=&quot;55.5dp&quot;
          android:layout_height=&quot;55.5dp&quot;
          android:layout_marginLeft=&quot;298.5dp&quot;
          android:background=&quot;@android:color/transparent&quot;
          android:src=&quot;@drawable/ic_baseline_search_24&quot; /&gt;
  
      &lt;com.google.android.material.appbar.AppBarLayout
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:theme=&quot;@style/AppTheme.AppBarOverlay&quot;&gt;
  
          &lt;ImageView
              android:id=&quot;@+id/title&quot;
              android:layout_width=&quot;155dp&quot;
              android:layout_height=&quot;55.5dp&quot;
              android:minHeight=&quot;?actionBarSize&quot;
              android:src=&quot;@mipmap/ic_banner_foreground&quot; /&gt;
  
          &lt;com.google.android.material.tabs.TabLayout
              android:id=&quot;@+id/tabs&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:background=&quot;?attr/colorPrimary&quot;
              app:tabGravity=&quot;center&quot;
              app:tabMode=&quot;auto&quot; /&gt;
  
      &lt;/com.google.android.material.appbar.AppBarLayout&gt;
  
      &lt;com.google.android.material.appbar.AppBarLayout
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;59dp&quot;
          android:layout_marginTop=&quot;672dp&quot;
          android:background=&quot;@color/colorPrimary&quot;
          android:theme=&quot;@style/AppTheme.AppBarOverlay&quot;&gt;
      &lt;/com.google.android.material.appbar.AppBarLayout&gt;
  
      &lt;androidx.viewpager.widget.ViewPager
          android:id=&quot;@+id/view_pager&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;566dp&quot;
          app:layout_behavior=&quot;@string/appbar_scrolling_view_behavior&quot;&gt;
  
          &lt;ListView
              android:id=&quot;@+id/list_view&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;566dp&quot; /&gt;
      &lt;/androidx.viewpager.widget.ViewPager&gt;
  
  &lt;/androidx.coordinatorlayout.widget.CoordinatorLayout&gt;
  </code></pre>