Skip to content

Instantly share code, notes, and snippets.

@le0nidas
Created January 16, 2022 10:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save le0nidas/79db4fd0e20bf081b8a0db4fce7ab7c8 to your computer and use it in GitHub Desktop.
public TextAppearanceSpan(Context context, int appearance, int colorList) {
// ...
if (mTypeface != null) {
mFamilyName = null;
} else {
String family = a.getString(com.android.internal.R.styleable.TextAppearance_fontFamily);
if (family != null) {
mFamilyName = family;
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment