MrEngineer13 / SnackBar

toast-like alert pattern for Android inspired by the Google Material Design Spec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Are there any explanation or samples for textColorId?

willowcheng opened this issue · comments

As I found there is option as setting textColorId, unfortunately, I cannot find any samples or related explanation.

You can use withTextColorId() to specify your own ColorStateList. In the sample activity, instead of a custom ColorStateList , SnackBar Styles were used to set the action text color. So to use your own ColorStateList all you need to do is call withTextColorId(R.color.default); and make sure that you have created your custom ColorStateList.