Created
June 1, 2018 10:58
-
-
Save EmmanuelGuther/23e053c330f80067f3bbee9ca7fe21b3 to your computer and use it in GitHub Desktop.
Kotlin extension function to easy change snackbar text color
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun Snackbar.setTextColor(color: Int): Snackbar { | |
val tv = view.findViewById(android.support.design.R.id.snackbar_text) as TextView | |
tv.setTextColor(color) | |
return this | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment