Skip to content

Instantly share code, notes, and snippets.

@le0nidas
Created January 16, 2022 10:10
  • 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/bfa25597528312fd90e13ba66fd06069 to your computer and use it in GitHub Desktop.
private static FontFileResourceEntry readFont(XmlPullParser parser, Resources resources)
throws XmlPullParserException, IOException {
AttributeSet attrs = Xml.asAttributeSet(parser);
TypedArray array = resources.obtainAttributes(attrs, R.styleable.FontFamilyFont);
// ...
String filename = array.getString(R.styleable.FontFamilyFont_font);
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment