Xamarin.Android

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ItemAdapter - Xamarin.Android API Reference | Syncfusion ItemAdapter class. ">

    Show / Hide Table of Contents

    Class ItemAdapter

    Initializes a new instance of the ItemAdapter class.

    Inheritance
    System.Object
    ItemAdapter
    Namespace: Com.Syncfusion.Carousel
    Assembly: Syncfusion.SfCarousel.Android.dll
    Syntax
    public class ItemAdapter : RecyclerView.Adapter

    Constructors

    ItemAdapter(Context, SfCarousel, Single, Single, IList<SfCarouselItem>)

    Initializes a new instance of the ItemAdapter class.

    Declaration
    public ItemAdapter(Context context, SfCarousel carouselArgs, float height, float width, IList<SfCarouselItem> tempList)
    Parameters
    Type Name Description
    Android.Content.Context context

    Context of item adapter.

    SfCarousel carouselArgs

    Carousel as parameter.

    System.Single height

    Height of adapter.

    System.Single width

    Width of adapter.

    System.Collections.Generic.IList<SfCarouselItem> tempList

    Temp list.

    Properties

    ItemCount

    Gets the item count.

    Declaration
    public override int ItemCount { get; }
    Property Value
    Type Description
    System.Int32

    The item count.

    Methods

    Dispose(Boolean)

    Dispose the specified disposing.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    If set to true disposing.

    OnBindViewHolder(RecyclerView.ViewHolder, Int32)

    On the bind view holder.

    Declaration
    public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
    Parameters
    Type Name Description
    Android.Support.V7.Widget.RecyclerView.ViewHolder holder

    Holder of adapter.

    System.Int32 position

    Position value.

    OnCreateViewHolder(ViewGroup, Int32)

    On the create view holder.

    Declaration
    public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
    Parameters
    Type Name Description
    Android.Views.ViewGroup parent

    Parent of adapter.

    System.Int32 viewType

    View type.

    Returns
    Type Description
    Android.Support.V7.Widget.RecyclerView.ViewHolder

    The create view holder.

    OnViewRecycled(Object)

    On the view recycled.

    Declaration
    public override void OnViewRecycled(Object holder)
    Parameters
    Type Name Description
    Java.Lang.Object holder

    The Holder.

    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved