Deprecated API


Contents
Deprecated Interfaces
com.android.layoutlib.api.IDensityBasedResourceValue
          use DensityBasedResourceValue. 
com.android.layoutlib.api.ILayoutBridge
          Extend Bridge instead. 
com.android.layoutlib.api.ILayoutLog
          use LayoutLog. 
com.android.layoutlib.api.ILayoutResult
          use RenderSession as returned by Bridge.createSession(com.android.ide.common.rendering.api.SessionParams) 
com.android.layoutlib.api.ILayoutResult.ILayoutViewInfo
            
com.android.layoutlib.api.IProjectCallback
            
com.android.layoutlib.api.IResourceValue
          use ResourceValue. 
com.android.layoutlib.api.IStyleResourceValue
          Use StyleResourceValue. 
com.android.layoutlib.api.IXmlPullParser
            
 

Deprecated Classes
com.android.ide.common.rendering.api.DeclareStyleableResourceValue
          This class is broken as it does not handle the namespace for each attribute. Thankfully, newer versions of layoutlib don't actually use it, so we just keep it as is for backward compatibility on older layoutlibs. 
com.android.util.Pair
          This is used for backward compatibility with layoutlib-api. Use com.android.utils.Pair instead 
 

Deprecated Enums
com.android.layoutlib.api.IDensityBasedResourceValue.Density
          use Density. 
 

Deprecated Methods
com.android.layoutlib.api.ILayoutBridge.computeLayout(IXmlPullParser, Object, int, int, boolean, int, float, float, String, boolean, Map>, Map>, IProjectCallback, ILayoutLog)
          use Bridge.createSession(com.android.ide.common.rendering.api.SessionParams) 
com.android.layoutlib.api.ILayoutBridge.computeLayout(IXmlPullParser, Object, int, int, int, float, float, String, boolean, Map>, Map>, IProjectCallback, ILayoutLog)
          use Bridge.createSession(com.android.ide.common.rendering.api.SessionParams) 
com.android.layoutlib.api.ILayoutBridge.computeLayout(IXmlPullParser, Object, int, int, String, boolean, Map>, Map>, IProjectCallback, ILayoutLog)
          use Bridge.createSession(com.android.ide.common.rendering.api.SessionParams) 
com.android.layoutlib.api.ILayoutBridge.computeLayout(IXmlPullParser, Object, int, int, String, Map>, Map>, IProjectCallback, ILayoutLog)
          use Bridge.createSession(com.android.ide.common.rendering.api.SessionParams) 
com.android.ide.common.rendering.api.StyleResourceValue.findItem(String)
          use ResourceValue.getValue() 
com.android.layoutlib.api.IStyleResourceValue.findItem(String)
          use StyleResourceValue.findValue(String) 
com.android.ide.common.rendering.api.RenderResources.findItemInStyle(StyleResourceValue, String)
          Use RenderResources.findItemInStyle(StyleResourceValue, String, boolean) since this method doesn't know the item namespace. 
com.android.ide.common.rendering.api.RenderResources.findItemInTheme(String)
          Use RenderResources.findItemInTheme(String, boolean) 
com.android.ide.common.rendering.api.StyleResourceValue.findValue(String)
          use StyleResourceValue.findValue(String, boolean) 
com.android.ide.common.rendering.api.RenderParams.getConfigScreenSize()
          Use RenderParams.getHardwareConfig() 
com.android.ide.common.rendering.api.DensityBasedResourceValue.getDensity()
          use DensityBasedResourceValue.getResourceDensity() instead. 
com.android.ide.common.rendering.api.RenderParams.getDensity()
          Use RenderParams.getHardwareConfig() 
com.android.layoutlib.api.IDensityBasedResourceValue.getDensity()
          use DensityBasedResourceValue.getResourceDensity() 
com.android.ide.common.rendering.api.ILayoutPullParser.getParser(String)
          use IProjectCallback.getParser(String) instead 
com.android.ide.common.rendering.api.IProjectCallback.getParser(String)
          This is replaced by IProjectCallback.getParser(ResourceValue) but older version of the layoutlib (before API7) will still call this method. 
com.android.ide.common.rendering.api.RenderParams.getScreenHeight()
          Use RenderParams.getHardwareConfig() 
com.android.ide.common.rendering.api.RenderParams.getScreenWidth()
          Use RenderParams.getHardwareConfig() 
com.android.ide.common.rendering.api.ResourceValue.getType()
          use ResourceValue.getResourceType() instead. 
com.android.ide.common.rendering.api.Bridge.getViewBaseline(Object)
          use the extended ViewInfo. 
com.android.ide.common.rendering.api.RenderParams.getXdpi()
          Use RenderParams.getHardwareConfig() 
com.android.ide.common.rendering.api.RenderParams.getYdpi()
          Use RenderParams.getHardwareConfig()