Xamarin.Android

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataFormGroupItemView - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DataFormGroupItemView

    Represent a layout that displays group of the SfDataForm. Group consists of expander and label. Expander denotes the expand collapse status of group in View. Label display group name in View.

    Inheritance
    System.Object
    DataFormItemViewBase
    DataFormGroupItemView
    Implements
    Android.Views.View.IOnClickListener
    Android.Runtime.IJavaObject
    System.IDisposable
    Namespace: Syncfusion.Android.DataForm
    Assembly: Syncfusion.SfDataForm.Android.dll
    Syntax
    public class DataFormGroupItemView : DataFormItemViewBase, View.IOnClickListener, IJavaObject, IDisposable

    Constructors

    DataFormGroupItemView(Context)

    Initializes a new instance of the DataFormGroupItemView.

    Declaration
    public DataFormGroupItemView(Context context)
    Parameters
    Type Name Description
    Android.Content.Context context

    Context of the view

    DataFormGroupItemView(Context, IAttributeSet)

    Initializes a new instance of the DataFormGroupItemView.

    Declaration
    public DataFormGroupItemView(Context context, IAttributeSet attributeSet)
    Parameters
    Type Name Description
    Android.Content.Context context

    Context of the view

    Android.Util.IAttributeSet attributeSet

    Required attributes set

    DataFormGroupItemView(Context, IAttributeSet, Int32)

    Initializes a new instance of the DataFormGroupItemView.

    Declaration
    public DataFormGroupItemView(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.

    DataFormGroupItemView(IntPtr, JniHandleOwnership)

    Initializes a new instance of the DataFormGroupItemView.

    Declaration
    protected DataFormGroupItemView(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

    DataFormGroupItem

    Gets the DataFormGroupItem associated with this layout.

    Declaration
    public DataFormGroupItem DataFormGroupItem { get; }
    Property Value
    Type Description
    DataFormGroupItem

    IsExpanded

    Gets a value that indicates whether the group is expanded.

    Declaration
    public bool IsExpanded { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    Dispose(Boolean)

    Disposes all the resources used by the DataFormGroupItemView 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.

    OnClick(View)

    Handles tapGesture to expand and collapse the DataFormGroupItemView and its DataFormItems.

    Declaration
    public void OnClick(View v)
    Parameters
    Type Name Description
    Android.Views.View v

    OnDraw(Canvas)

    Overridden to draw and expand and collapse icons.

    Declaration
    protected override void OnDraw(Canvas canvas)
    Parameters
    Type Name Description
    Android.Graphics.Canvas canvas

    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 DataFormGroupItemView

    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.

    Implements

    Android.Views.View.IOnClickListener
    Android.Runtime.IJavaObject
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved