com.android.ide.common.rendering.api
Interface ILayoutPullParser

All Superinterfaces:
org.xmlpull.v1.XmlPullParser

public interface ILayoutPullParser
extends org.xmlpull.v1.XmlPullParser

Extended version of XmlPullParser to use with Bridge.createSession(SessionParams)


Field Summary
 
Fields inherited from interface org.xmlpull.v1.XmlPullParser
CDSECT, COMMENT, DOCDECL, END_DOCUMENT, END_TAG, ENTITY_REF, FEATURE_PROCESS_DOCDECL, FEATURE_PROCESS_NAMESPACES, FEATURE_REPORT_NAMESPACE_ATTRIBUTES, FEATURE_VALIDATION, IGNORABLE_WHITESPACE, NO_NAMESPACE, PROCESSING_INSTRUCTION, START_DOCUMENT, START_TAG, TEXT, TYPES
 
Method Summary
 ILayoutPullParser getParser(java.lang.String layoutName)
          Deprecated. use IProjectCallback.getParser(String) instead
 java.lang.Object getViewCookie()
          Returns a cookie for the current XML node.
 
Methods inherited from interface org.xmlpull.v1.XmlPullParser
defineEntityReplacementText, getAttributeCount, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getColumnNumber, getDepth, getEventType, getFeature, getInputEncoding, getLineNumber, getName, getNamespace, getNamespace, getNamespaceCount, getNamespacePrefix, getNamespaceUri, getPositionDescription, getPrefix, getProperty, getText, getTextCharacters, isAttributeDefault, isEmptyElementTag, isWhitespace, next, nextTag, nextText, nextToken, require, setFeature, setInput, setInput, setProperty
 

Method Detail

getViewCookie

java.lang.Object getViewCookie()
Returns a cookie for the current XML node.

This cookie will be passed back in the ViewInfo objects, allowing association of a particular XML node with its result from the layout computation.

See Also:
ViewInfo.getCookie()

getParser

@Deprecated
ILayoutPullParser getParser(java.lang.String layoutName)
Deprecated. use IProjectCallback.getParser(String) instead

Returns a custom parser for the layout of the given name.

Parameters:
layoutName - the name of the layout.
Returns:
returns a custom parser or null if no custom parsers are needed.