I want to show material design button like this:
I am using MaterialDesignLibrary. In XML, I can show it in this way:
<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" />
How to show this button programmatically?