Class DataFormItemView
Represents a layout that displays editor for data field of the SfDataForm. DataFormItemView consists of label shows the caption of data field, editor for editing the data field value, label for showing validation error message.
Namespace: Syncfusion.Android.DataForm
Assembly: Syncfusion.SfDataForm.Android.dll
Syntax
public class DataFormItemView : DataFormItemViewBase
Constructors
DataFormItemView(Context)
Initializes a new instance of the DataFormItemView.
Declaration
public DataFormItemView(Context context)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | Context of the view |
DataFormItemView(Context, IAttributeSet)
Initializes a new instance of the DataFormItemView.
Declaration
public DataFormItemView(Context context, IAttributeSet attributeSet)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | Context of the view |
Android.Util.IAttributeSet | attributeSet | Required attributes set |
DataFormItemView(Context, IAttributeSet, Int32)
Initializes a new instance of the DataFormItemView.
Declaration
public DataFormItemView(Context context, IAttributeSet attributeSet, int definedStyle)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | Context of the view |
Android.Util.IAttributeSet | attributeSet | Required attributes set |
System.Int32 | definedStyle | Default style attribute. |
DataFormItemView(IntPtr, JniHandleOwnership)
Initializes a new instance of the DataFormItemView.
Declaration
protected DataFormItemView(IntPtr javaReference, JniHandleOwnership transfer)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | javaReference | Java Native Interface object reference. |
Android.Runtime.JniHandleOwnership | transfer | A Android.Runtime.JniHandleOwnership indicating how to handle. |
Properties
DataFormItem
Gets DataFormItem associated with this layout.
Declaration
public DataFormItem DataFormItem { get; }
Property Value
Type |
---|
DataFormItem |
Editor
Gets the DataFormEditorBase that creates, updates the editor and also handles editing of data field associated with DataFormItemView.
Declaration
public DataFormEditorBase Editor { get; }
Property Value
Type |
---|
DataFormEditorBase |
EditorView
Gets the editor loaded for data field.
Declaration
public View EditorView { get; }
Property Value
Type |
---|
Android.Views.View |
Methods
Dispose(Boolean)
Disposes all the resources used by the DataFormItemView class.
Declaration
protected override void Dispose(bool isDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDisposing | Indicates whether the call is from Dispose method or from a finalizer. |
OnLayout(Boolean, Int32, Int32, Int32, Int32)
Called from layout when this view should assign a size and position to each of its children.
Declaration
protected override void OnLayout(bool changed, int left, int top, int right, int bottom)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | changed | This is a new size or position for this view |
System.Int32 | left | Left position, relative to parent |
System.Int32 | top | Top position, relative to parent |
System.Int32 | right | Right position, relative to parent |
System.Int32 | bottom | Bottom position, relative to parent |
OnMeasure(Int32, Int32)
Positions and sizes the children in DataFormItemView.
Declaration
protected override void OnMeasure(int widthMeasureSpec, int heightMeasureSpec)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | widthMeasureSpec | Width measure spec. |
System.Int32 | heightMeasureSpec | Height measure spec. |