FileDocCategorySizeDatePackage
RenderNode_Delegate.javaAPI DocAndroid 5.1 API2353Thu Mar 12 22:22:44 GMT 2015android.view

RenderNode_Delegate

public class RenderNode_Delegate extends Object
Delegate implementing the native methods of {@link RenderNode}

Through the layoutlib_create tool, some native methods of RenderNode have been replaced by calls to methods of the same name in this delegate class.

see
DelegateManager

Fields Summary
private static final com.android.layoutlib.bridge.impl.DelegateManager
sManager
private float
mLift
private String
mName
Constructors Summary
Methods Summary
static longnCreate(java.lang.String name)

        RenderNode_Delegate renderNodeDelegate = new RenderNode_Delegate();
        renderNodeDelegate.mName = name;
        return sManager.addNewDelegate(renderNodeDelegate);
    
static voidnDestroyRenderNode(long renderNode)

        sManager.removeJavaReferenceFor(renderNode);
    
static floatnGetElevation(long renderNode)

        RenderNode_Delegate delegate = sManager.getDelegate(renderNode);
        if (delegate != null) {
            return delegate.mLift;
        }
        return 0f;
    
static booleannSetElevation(long renderNode, float lift)

        RenderNode_Delegate delegate = sManager.getDelegate(renderNode);
        if (delegate != null && delegate.mLift != lift) {
            delegate.mLift = lift;
            return true;
        }
        return false;