Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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