navasmdc / MaterialDesignLibrary

This is a library with components of Android L to you use in android 2.2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ButtonFlat Color does not change.

MrThiago opened this issue · comments


    <com.gc.materialdesign.views.ButtonFlat
        android:id="@+id/bt_skip_login"
        android:onClick="autoLogin"
        android:layout_above="@+id/login_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:background="#FFFFFF"
        android:text="Skip Login" />

The colour of this BT remains BLUE. Any advice pls; how can I change it to White. thank you.

Try defining your own color xml. the below works perfectly fine for me.

<com.gc.materialdesign.views.ButtonRectangle
        android:id="@+id/button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@color/ColorPrimary"
        android:text="Button" />