Class GridLayouter
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
Layouter for CollectionView to display items in grid layout.
public class GridLayouter : ItemsLayouter, ICollectionChangedNotifier, IDisposable
- Inheritance
-
- Implements
-
IDisposable
Properties
View Source
GroupItems
Declaration
protected override List<ItemsLayouter.GroupInfo> GroupItems { get; }
Property Value
Overrides
View Source
SizeCandidate
Declaration
protected (float Width, float Height) SizeCandidate { get; }
Property Value
Type |
Description |
(float Width, float Height) |
|
View Source
Source
Declaration
protected IGroupableItemSource Source { get; }
Property Value
View Source
SpanSize
Declaration
protected int SpanSize { get; }
Property Value
Methods
View Source
Declaration
public override float CalculateCandidateScrollPosition(float scrollPosition)
Parameters
Type |
Name |
Description |
float |
scrollPosition |
|
Returns
Overrides
View Source
CalculateLayoutOrientationSize()
Declaration
public override float CalculateLayoutOrientationSize()
Returns
Overrides
View Source
Clear()
Clear the current screen and all properties.
Declaration
public override void Clear()
Overrides
View Source
FindVisibleItems((float X, float Y))
Declaration
protected override (int start, int end) FindVisibleItems((float X, float Y) visibleArea)
Parameters
Type |
Name |
Description |
(float Width, float Height) |
visibleArea |
|
Returns
Type |
Description |
(int, int) |
|
Overrides
View Source
GetItemPosition(int)
Declaration
protected override (float X, float Y) GetItemPosition(int index)
Parameters
Type |
Name |
Description |
int |
index |
|
Returns
Type |
Description |
(float Width, float Height) |
|
Overrides
View Source
GetItemSize(int)
Declaration
protected override (float Width, float Height) GetItemSize(int index)
Parameters
Type |
Name |
Description |
int |
index |
|
Returns
Type |
Description |
(float Width, float Height) |
|
Overrides
View Source
Initialize(RecyclerView)
Declaration
public override void Initialize(RecyclerView view)
Parameters
Type |
Name |
Description |
RecyclerView |
view |
CollectionView of layouter.
|
Overrides
View Source
NotifyItemInserted(IItemSource, int)
Declaration
public override void NotifyItemInserted(IItemSource source, int startIndex)
Parameters
Type |
Name |
Description |
IItemSource |
source |
|
int |
startIndex |
|
Overrides
View Source
NotifyItemMoved(IItemSource, int, int)
Declaration
public override void NotifyItemMoved(IItemSource source, int fromPosition, int toPosition)
Parameters
Type |
Name |
Description |
IItemSource |
source |
|
int |
fromPosition |
|
int |
toPosition |
|
Overrides
View Source
NotifyItemRangeInserted(IItemSource, int, int)
Declaration
public override void NotifyItemRangeInserted(IItemSource source, int startIndex, int count)
Parameters
Type |
Name |
Description |
IItemSource |
source |
|
int |
startIndex |
|
int |
count |
|
Overrides
View Source
NotifyItemRangeMoved(IItemSource, int, int, int)
Declaration
public override void NotifyItemRangeMoved(IItemSource source, int fromPosition, int toPosition, int count)
Parameters
Type |
Name |
Description |
IItemSource |
source |
|
int |
fromPosition |
|
int |
toPosition |
|
int |
count |
|
Overrides
View Source
NotifyItemRangeRemoved(IItemSource, int, int)
Declaration
public override void NotifyItemRangeRemoved(IItemSource source, int startIndex, int count)
Parameters
Type |
Name |
Description |
IItemSource |
source |
|
int |
startIndex |
|
int |
count |
|
Overrides
View Source
NotifyItemRemoved(IItemSource, int)
Declaration
public override void NotifyItemRemoved(IItemSource source, int startIndex)
Parameters
Type |
Name |
Description |
IItemSource |
source |
|
int |
startIndex |
|
Overrides
View Source
NotifyItemSizeChanged(RecyclerViewItem)
Declaration
public override void NotifyItemSizeChanged(RecyclerViewItem item)
Parameters
Overrides
View Source
RequestLayout(float, bool)
This is called to find out where items are lain out according to current scroll position.
Declaration
public override void RequestLayout(float scrollPosition, bool force = false)
Parameters
Type |
Name |
Description |
float |
scrollPosition |
Scroll position which is calculated by ScrollableBase
|
bool |
force |
boolean force flag to layouting forcely.
|
Overrides
View Source
RequestNextFocusableView(View, FocusDirection, bool)
Declaration
public override View RequestNextFocusableView(View currentFocusedView, View.FocusDirection direction, bool loopEnabled)
Parameters
Returns
Overrides
Implements
IDisposable
Extension Methods