All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.robobinding.viewattribute.adapterview.SubViewLayoutAttribute Maven / Gradle / Ivy

package org.robobinding.viewattribute.adapterview;

import org.robobinding.BindingContext;
import org.robobinding.attribute.StaticResourceAttribute;
import org.robobinding.viewattribute.ChildViewAttributeWithAttribute;

/**
*
* @since 1.0
* @version $Revision: 1.0 $
* @author Robert Taylor
* @author Cheng Wei
*/
class SubViewLayoutAttribute implements ChildViewAttributeWithAttribute {
    private int layoutId;
    private StaticResourceAttribute attribute;

    @Override
    public void bindTo(BindingContext bindingContext) {
        layoutId = attribute.getResourceId(bindingContext.getContext());
    }

    @Override
    public void setAttribute(StaticResourceAttribute attribute) {
        this.attribute = attribute;
    }

    public int getLayoutId() {
        return layoutId;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy