Created
January 16, 2022 09:52
Star
You must be signed in to star a gist
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
// TextAppearanceSpan: | |
public TextAppearanceSpan(Context context, int appearance, int colorList) { | |
// ... | |
mTypeface = a.getFont(com.android.internal.R.styleable.TextAppearance_fontFamily) | |
// ... | |
} | |
// TypedArray: | |
public Typeface getFont(@StyleableRes int index) { | |
// ... | |
return mResources.getFont(value, value.resourceId); | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment