title: How to make toolbar on Android takes a full width?
body: <p>Here is the result: <a href="https://i.stack.imgur.com/VgbZT.png" rel="noreferrer">http://i.stack.imgur.com/VgbZT.png</a>. I want it to be right below status bar and full width, just like this one: <a href="https://i.stack.imgur.com/FFQJN.png" rel="noreferrer">http://i.stack.imgur.com/FFQJN.png</a>.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
      android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      android:paddingBottom="@dimen/activity_vertical_margin"
      tools:context=".MyActivity"&gt;
  
      &lt;!--&lt;android.support.v7.widget.Toolbar--&gt;
          &lt;!--android:id="@+id/toolbar"--&gt;
          &lt;!--android:layout_height="wrap_content"--&gt;
          &lt;!--android:layout_width="match_parent"--&gt;
          &lt;!--android:minHeight="?attr/actionBarSize"--&gt;
          &lt;!--android:background="?attr/colorPrimary" /&gt;--&gt;
  
      &lt;android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:app="http://schemas.android.com/apk/res-auto"
          android:id="@+id/toolbar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          app:contentInsetEnd="0dp"
          app:contentInsetStart="0dp"
          android:minHeight="?attr/actionBarSize"
          android:background="?attr/colorPrimary" &gt;
      &lt;/android.support.v7.widget.Toolbar&gt;
  
  &lt;/RelativeLayout&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>public class MyActivity extends ActionBarActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_card_list);
  
          Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
          setSupportActionBar(toolbar);
      }</code></pre>
  </div>
  </div>
  </p>
  
  <p>I already read <a href="https://stackoverflow.com/questions/26433409/android-lollipop-appcompat-actionbar-custom-view-doesnt-take-up-whole-screen-w">this one</a>, but it still didn't work.</p>