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
    object
    ItemsLayouter
    GridLayouter
    Implements
    ICollectionChangedNotifier
    IDisposable

    Properties

    View Source

    GroupItems

    Visible ViewItem.

    Declaration
    protected override List<ItemsLayouter.GroupInfo> GroupItems { get; }
    Property Value
    Type Description
    List<><GroupInfo>
    Overrides
    ItemsLayouter.GroupItems
    View Source

    SizeCandidate

    Size Candidate

    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
    Type Description
    IGroupableItemSource
    View Source

    SpanSize

    Span Size

    Declaration
    protected int SpanSize { get; }
    Property Value
    Type Description
    int

    Methods

    View Source

    CalculateCandidateScrollPosition(float)

    Declaration
    public override float CalculateCandidateScrollPosition(float scrollPosition)
    Parameters
    Type Name Description
    float scrollPosition
    Returns
    Type Description
    float
    Overrides
    ItemsLayouter.CalculateCandidateScrollPosition(float)
    View Source

    CalculateLayoutOrientationSize()

    Declaration
    public override float CalculateLayoutOrientationSize()
    Returns
    Type Description
    float
    Overrides
    ItemsLayouter.CalculateLayoutOrientationSize()
    View Source

    Clear()

    Clear the current screen and all properties.

    Declaration
    public override void Clear()
    Overrides
    ItemsLayouter.Clear()
    View Source

    FindVisibleItems((float X, float Y))

    Find consecutive visible items index.

    Declaration
    protected override (int start, int end) FindVisibleItems((float X, float Y) visibleArea)
    Parameters
    Type Name Description
    (float Width, float Height) visibleArea

    float turple of visible area start position to end position.

    Returns
    Type Description
    (int, int)
    Overrides
    ItemsLayouter.FindVisibleItems((float X, float Y))
    View Source

    GetItemPosition(int)

    Get item position.

    Declaration
    protected override (float X, float Y) GetItemPosition(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    (float Width, float Height)
    Overrides
    ItemsLayouter.GetItemPosition(int)
    View Source

    GetItemSize(int)

    Get item size.

    Declaration
    protected override (float Width, float Height) GetItemSize(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    (float Width, float Height)
    Overrides
    ItemsLayouter.GetItemSize(int)
    View Source

    Initialize(RecyclerView)

    Clean up ItemsLayouter.

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

    CollectionView of layouter.

    Overrides
    ItemsLayouter.Initialize(RecyclerView)
    Remarks

    please note that, view must be type of CollectionView

    View Source

    NotifyItemInserted(IItemSource, int)

    Declaration
    public override void NotifyItemInserted(IItemSource source, int startIndex)
    Parameters
    Type Name Description
    IItemSource source
    int startIndex
    Overrides
    ItemsLayouter.NotifyItemInserted(IItemSource, int)
    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
    ItemsLayouter.NotifyItemMoved(IItemSource, int, int)
    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
    ItemsLayouter.NotifyItemRangeInserted(IItemSource, int, int)
    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
    ItemsLayouter.NotifyItemRangeMoved(IItemSource, int, int, int)
    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
    ItemsLayouter.NotifyItemRangeRemoved(IItemSource, int, int)
    View Source

    NotifyItemRemoved(IItemSource, int)

    Declaration
    public override void NotifyItemRemoved(IItemSource source, int startIndex)
    Parameters
    Type Name Description
    IItemSource source
    int startIndex
    Overrides
    ItemsLayouter.NotifyItemRemoved(IItemSource, int)
    View Source

    NotifyItemSizeChanged(RecyclerViewItem)

    Notify the relayout of ViewItem.

    Declaration
    public override void NotifyItemSizeChanged(RecyclerViewItem item)
    Parameters
    Type Name Description
    RecyclerViewItem item

    updated ViewItem.

    Overrides
    ItemsLayouter.NotifyItemSizeChanged(RecyclerViewItem)
    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
    ItemsLayouter.RequestLayout(float, bool)
    View Source

    RequestNextFocusableView(View, FocusDirection, bool)

    Declaration
    public override View RequestNextFocusableView(View currentFocusedView, View.FocusDirection direction, bool loopEnabled)
    Parameters
    Type Name Description
    View currentFocusedView
    View.FocusDirection direction
    bool loopEnabled
    Returns
    Type Description
    View
    Overrides
    ItemsLayouter.RequestNextFocusableView(View, View.FocusDirection, bool)

    Implements

    ICollectionChangedNotifier
    IDisposable

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX