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

org.robobinding.widget.view.ViewBindingForView Maven / Gradle / Ivy

There is a newer version: 0.8.14
Show newest version
package org.robobinding.widget.view;

import org.robobinding.viewbinding.BindingAttributeMappings;
import org.robobinding.viewbinding.ViewBinding;

import android.view.View;

/**
 * 
 * @since 1.0
 * @version $Revision: 1.0 $
 * @author Robert Taylor
 */
public class ViewBindingForView implements ViewBinding {
	@Override
	public void mapBindingAttributes(BindingAttributeMappings mappings) {
		mappings.mapOneWayMultiTypeProperty(new VisibilityAttributeFactory(new ViewVisibilityFactory()), "visibility");
		mappings.mapOneWayProperty(LayoutMarginAttribute.class, "layoutMargin");
		mappings.mapOneWayProperty(PaddingAttribute.class, "padding");

		mappings.mapEvent(OnClickAttribute.class, "onClick");
		mappings.mapEvent(OnLongClickAttribute.class, "onLongClick");
		mappings.mapEvent(OnFocusChangeAttribute.class, "onFocusChange");
		mappings.mapEvent(OnFocusAttribute.class, "onFocus");
		mappings.mapEvent(OnFocusLostAttribute.class, "onFocusLost");
		mappings.mapEvent(OnTouchAttribute.class, "onTouch");
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy