FileDocCategorySizeDatePackage
AdapterItem.javaAPI DocAndroid 5.1 API1953Thu Mar 12 22:22:44 GMT 2015com.android.layoutlib.bridge.impl.binding

AdapterItem

public final class AdapterItem extends Object
This is the items provided by the adapter. They are dynamically generated.

Fields Summary
private final com.android.ide.common.rendering.api.DataBindingItem
mItem
private final int
mType
private final int
mFullPosition
private final int
mPositionPerType
private List
mChildren
Constructors Summary
protected AdapterItem(com.android.ide.common.rendering.api.DataBindingItem item, int type, int fullPosition, int positionPerType)

        mItem = item;
        mType = type;
        mFullPosition = fullPosition;
        mPositionPerType = positionPerType;
    
Methods Summary
voidaddChild(com.android.layoutlib.bridge.impl.binding.AdapterItem child)

        if (mChildren == null) {
            mChildren = new ArrayList<AdapterItem>();
        }

        mChildren.add(child);
    
java.util.ListgetChildren()

        if (mChildren != null) {
            return mChildren;
        }

        return Collections.emptyList();
    
com.android.ide.common.rendering.api.DataBindingItemgetDataBindingItem()

        return mItem;
    
intgetFullPosition()

        return mFullPosition;
    
intgetPositionPerType()

        return mPositionPerType;
    
intgetType()

        return mType;