use of org.kxml2.io.KXmlParser in project android_frameworks_base by DirtyUnicorns.
the class LayoutParserWrapperTest method getParserFromString.
private static LayoutParserWrapper getParserFromString(String layoutContent) throws XmlPullParserException {
XmlPullParser parser = new KXmlParser();
parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true);
parser.setInput(new StringReader(layoutContent));
return new LayoutParserWrapper(parser);
}
use of org.kxml2.io.KXmlParser in project android_frameworks_base by crdroidandroid.
the class LayoutParserWrapperTest method getParserFromString.
private static LayoutParserWrapper getParserFromString(String layoutContent) throws XmlPullParserException {
XmlPullParser parser = new KXmlParser();
parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true);
parser.setInput(new StringReader(layoutContent));
return new LayoutParserWrapper(parser);
}
Aggregations