Class KanbanAdapter
This class is used to customize the default card and header views. If you need to provide your own implementation to override the default appearance, you can write the subclass and set its instance to Adapter property of SfKanban.
Inheritance
System.Object
KanbanAdapter
Namespace: Syncfusion.SfKanban.Android
Assembly: Syncfusion.SfKanban.Android.dll
Syntax
public class KanbanAdapter : Object
Constructors
KanbanAdapter(SfKanban)
Initializes a new instance of the KanbanAdapter class.
Declaration
public KanbanAdapter(SfKanban kanban)
Parameters
Type | Name | Description |
---|---|---|
SfKanban | kanban | Kanban. |
Methods
BindItemView(KanbanColumn, KanbanItemViewHolder, Object, Int32)
Binds the data for item view.
Declaration
protected virtual void BindItemView(KanbanColumn column, KanbanItemViewHolder viewHolder, object data, int position)
Parameters
Type | Name | Description |
---|---|---|
KanbanColumn | column | Column. |
Syncfusion.SfKanban.Android.KanbanItemViewHolder | viewHolder | View holder. |
System.Object | data | Data. |
System.Int32 | position | Position. |
BindItemView(KanbanColumn, KanbanItemViewHolder, Object, Int32, CardView)
Binds the data for item view based on card view.
Declaration
protected virtual void BindItemView(KanbanColumn column, KanbanItemViewHolder viewHolder, object data, int position, CardView cardView)
Parameters
Type | Name | Description |
---|---|---|
KanbanColumn | column | Column. |
Syncfusion.SfKanban.Android.KanbanItemViewHolder | viewHolder | View holder. |
System.Object | data | Data. |
System.Int32 | position | Position. |
AndroidX.CardView.Widget.CardView | cardView | Card view. |
GetHeaderView(KanbanColumn, Int32)
Declaration
protected virtual View GetHeaderView(KanbanColumn column, int columnPosition)
Parameters
Type | Name | Description |
---|---|---|
KanbanColumn | column | |
System.Int32 | columnPosition |
Returns
Type |
---|
Android.Views.View |
GetItemView()
Returns the customized item view.
Declaration
protected virtual View GetItemView()
Returns
Type | Description |
---|---|
Android.Views.View | The item view cell. |
GetItemView(Int32)
Returns the customized item view based on viewType.
Declaration
protected virtual View GetItemView(int viewType)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | viewType | View type. |
Returns
Type | Description |
---|---|
Android.Views.View | The item view. |
GetItemViewType(Int32, Object)
Gets the type of the item view.
Declaration
protected virtual int GetItemViewType(int position, object data)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | position | Position. |
System.Object | data | Data. |
Returns
Type | Description |
---|---|
System.Int32 | The item view type. |