Class GridLayouter

Definition

Namespace:
Tizen.NUI.Components
Assembly:
Tizen.NUI.Components.dll
API Level:
9

Layouter for CollectionView to display items in grid layout.

C#
Copy
public class GridLayouter : ItemsLayouter, ICollectionChangedNotifier, IDisposable
Inheritance
GridLayouter
Implements

Methods

View Source

Initialize(RecyclerView)

Clean up ItemsLayouter.

Declaration
C#
Copy
public override void Initialize(RecyclerView view)
Parameters
Type Name Description
RecyclerView view

CollectionView of layouter.

Overrides
Remarks

please note that, view must be type of CollectionView

API Level: 9
View Source

NotifyItemSizeChanged(RecyclerViewItem)

Declaration
C#
Copy
public override void NotifyItemSizeChanged(RecyclerViewItem item)
Parameters
Type Name Description
RecyclerViewItem item
Overrides
Tizen.NUI.Components.ItemsLayouter.NotifyItemSizeChanged(Tizen.NUI.Components.RecyclerViewItem)
View Source

RequestLayout(Single, Boolean)

This is called to find out where items are lain out according to current scroll position.

Declaration
C#
Copy
public override void RequestLayout(float scrollPosition, bool force = false)
Parameters
Type Name Description
Single scrollPosition

Scroll position which is calculated by ScrollableBase

Boolean force

boolean force flag to layouting forcely.

Overrides
API Level: 9

Implements