title: Setting toolbar layout_collapseMode programmatically
body: <p>Is there any way I can change my android.support.v7.widget.Toolbar  layout_collapseMode property programmatically? </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&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:layout_width="match_parent"
      android:layout_height="?attr/actionBarSize"
      app:layout_collapseMode="pin"
      app:theme="@style/ToolBarTheme"
      app:popupTheme="@style/ThemeOverlay.AppCompat.Light"&gt;
  
  &lt;/android.support.v7.widget.Toolbar&gt;
  </code></pre>