org.robobinding.widget.view.ViewBindingForView Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of robobinding Show documentation
Show all versions of robobinding Show documentation
A Presentation Model(MVVM) framework for the Android platform
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