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

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

The newest version!
package org.robobinding.widget.adapterview;

import org.robobinding.BindingContext;
import org.robobinding.attribute.StaticResourceAttribute;
import org.robobinding.viewattribute.grouped.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