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()
Declaration
public ItemAdapter()
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. |
ItemAdapter(IntPtr, JniHandleOwnership)
Declaration
public ItemAdapter(IntPtr javaReference, JniHandleOwnership transfer)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | javaReference | |
Android.Runtime.JniHandleOwnership | transfer |
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 |
OnBindViewHolder(RecyclerView.ViewHolder, Int32)
On the bind view holder.
Declaration
public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
Parameters
Type | Name | Description |
---|---|---|
AndroidX.RecyclerView.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 |
---|---|
AndroidX.RecyclerView.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. |