title: Set Gravity for Toolbar (RelativeLayout)
body: <p>i need to set Gravity programmatically to Bottom. It's loks like the default value is Top.The attributes in the Comment specifically for the Toolbar on this Fragment. My Idea is to add the chances on onCreateView and remove onDetach.</p>
  
  <pre><code>private Toolbar toolbar;
  private ViewGroup.LayoutParams params;
  
   RelativeLayout.LayoutParams newParams = new
   RelativeLayout.LayoutParams(toolbar.getLayoutParams());
   params = new RelativeLayout.LayoutParams(toolbar.getLayoutParams());
   newParams.height = dpToPx(128);
   //need to set gravity
   toolbar.setPadding(0, 0, 0, dpToPx(28));
  
   toolbar.setLayoutParams(newParams);
  
   /*android:layout_height="128dp"
     android:gravity="bottom""
     android:paddingBottom="28dp"*/
  </code></pre>
  
  <p>Thanks </p>