Search code examples
androidmaterial-componentsmaterial-components-android

How to set text color for MaterialButton from code?


I am using MaterialButton with outline style and can't set text color from code. Is there setTextColor method? I can change it via android:textColor from XML, but not from code.

Using com.google.android.material:material:1.0.0-rc01


Solution

  • There was bug in 1.0.0-rc01 version and it was fixed in release version.