/// <summary> /// Called when the host view is attempting to determine if an item's position has changed. We /// </summary> /// <param name="objectValue"></param> /// <returns></returns> public override int GetItemPosition(Java.Lang.Object objectValue) { if (objectValue.Equals(Wizard.PreviousStep)) return PositionUnchanged; return PositionNone; //Indicates that the item is no longer present in the adapter.. Forces a screen reload.. causing the updated context data to appear }
public Java.Lang.Object Apply(Java.Lang.Object context, Java.Lang.Object groupName) { // Developers can create a special group layout for any given group name. if(groupName.Equals("Group 2")) { EditorGroup group = new EditorGroup((Context)context, groupName.ToString(), Resource.Layout.dataform_custom_group); // Each group can have a specific layout manager, be it a table layout, a linear layout, a placeholder layout or even something completely custom. group.LayoutManager = new DataFormPlaceholderLayoutManager((Context)context, Resource.Layout.dataform_group_placeholder_layout); return group; } return null; }
protected override bool SupportsType(Java.Lang.Class type) { // Defining which types this editor supports is required. return type.Equals(Java.Lang.Class.FromType(typeof(EmployeeType))); }