MaterialDesignLibrary icon indicating copy to clipboard operation
MaterialDesignLibrary copied to clipboard

ButtonRectangle - setting text color from xml

Open bkraszewski opened this issue 9 years ago • 1 comments

Hello,

Setting textColor from code works great: gameButton.setTextColor(getResources().getColor(R.color.black));

But value from xml is ignored <com.gc.materialdesign.views.ButtonRectangle android:id="@+id/play_game" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/play_game_background" android:textColor="@color/black" android:text="@string/play_a_game" />

As a result, text stays white

bkraszewski avatar Mar 28 '15 16:03 bkraszewski

+1 same issue. I can set the text color from java just fine using setTextColor(), but for some reason there is an issue with the textColor xml attribute. Did you ever find a solution to this?

zwickers avatar Jun 23 '16 00:06 zwickers