Created
October 17, 2017 10:40
-
-
Save stramek/c50ce246798af21055f16cba104962d7 to your computer and use it in GitHub Desktop.
This file contains 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
val callback = object : FontsContractCompat.FontRequestCallback() { | |
override fun onTypefaceRetrieved(typeface: Typeface?) { | |
textCode.typeface = typeface | |
} | |
override fun onTypefaceRequestFailed(reason: Int) { | |
Log.i("MainActivity", "onTypefaceRequestFailed with code: " + reason) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment