title: How do I align the contents of app bar layout to horizontal
body: <p>I have an activity with coordinator layout for which I have app bar layout and include an scrolling content </p>
  
  <p>All the items of the app bar layout are by default arranged vertically and also when I override an menu item for the app bar layout it is not visible so I used an button in the app bar layout</p>
  
  <p>I tried changing the orientation to horizontal by writing in the xml but the scrolling content is coming over the app bar layout</p>
  
  <p>Kindly help me to correct this issue and also how to include a menu item for this layout</p>
  
  <h2>XML</h2>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.design.widget.CoordinatorLayout
          xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:app="http://schemas.android.com/apk/res-auto"
          xmlns:tools="http://schemas.android.com/tools"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          tools:context=".AddItem"&gt;
  
  
      &lt;android.support.design.widget.AppBarLayout
              android:layout_height="wrap_content"
              android:layout_width="match_parent"
              android:minHeight="?attr/actionBarSize"
              android:theme="?attr/actionBarTheme"
              android:background="#252A4E"&gt;
  
          &lt;TextView
                  android:text="Item :"
                  android:layout_marginLeft="4pt"
                  android:gravity="center"
                  android:layout_width="wrap_content"
                  android:layout_height="25pt" android:id="@+id/tvItem"
                  android:layout_gravity="center_vertical"
                  android:textColor="#F8F6F6" android:textSize="15pt"
                  app:fontFamily="@font/averia_libre" /&gt;
          &lt;TextView
                  android:text="1"
                  android:layout_marginLeft="4pt"
                  android:gravity="center"
                  android:layout_width="wrap_content"
                  android:layout_height="25pt" android:id="@+id/tvElevatorNo"
                  android:layout_gravity="center_vertical"
                  android:textColor="#F8F6F6" android:textSize="15pt"
                  app:fontFamily="@font/averia_libre"/&gt;
          &lt;ImageButton
                  android:layout_marginLeft="72pt"
                  android:onClick="AddElevator"
                  android:layout_gravity="end"
                  android:layout_width="62dp"
                  android:layout_height="match_parent" app:srcCompat="@drawable/baseline_done_white_18dp"
                  android:id="@+id/ibComplete" tools:srcCompat="@drawable/baseline_done_white_18dp"
                  android:tint="#F9FBE7" android:background="#252A4E"/&gt;
  
  
      &lt;/android.support.design.widget.AppBarLayout&gt;
      &lt;include layout="@layout/content_add_item" android:layout_height="674dp"/&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/SQz75.png" alt="Image"></p>