title: Android. Material design button programmatically
body: <p>I want to show material design button like this:</p>
  
  <p><a href="https://i.stack.imgur.com/uNdRN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uNdRN.png" alt="enter image description here"></a></p>
  
  <p>I am using <a href="https://github.com/navasmdc/MaterialDesignLibrary" rel="nofollow noreferrer">MaterialDesignLibrary</a>. In XML, I can show it in this way:</p>
  
  <pre><code>&lt;com.gc.materialdesign.views.ButtonRectangle
                  android:id="@+id/button"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:background="#1E88E5"
                  android:text="Button" /&gt;
  </code></pre>
  
  <p>How to show this button <strong>programmatically</strong>?</p>