Class ItemAdapter
Item adapter for getting view of suggestion box.
Inheritance
System.Object
ItemAdapter
Namespace: Syncfusion.Android.ComboBox
Assembly: Syncfusion.SfComboBox.Android.dll
Syntax
public class ItemAdapter : RecyclerView.Adapter
Constructors
ItemAdapter(Context, SfComboBox, List<String>)
Initializes a new instance of the ItemAdapter class.
Declaration
public ItemAdapter(Context context, SfComboBox autocomplete, List<string> tempList)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | The application context. |
SfComboBox | autocomplete | |
System.Collections.Generic.List<System.String> | 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 event.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
GetItemId(Int32)
Gets the item identifier.
Declaration
public override long GetItemId(int position)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | position | Actual Position. |
Returns
Type | Description |
---|---|
System.Int64 | The item identifier. |
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 | View Holder. |
System.Int32 | position | Actual Position. |
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 View. |
System.Int32 | viewType | View type. |
Returns
Type | Description |
---|---|
AndroidX.RecyclerView.Widget.RecyclerView.ViewHolder | The create view holder. |