Class RecycleLayoutManager

    Definition

    Namespace:
    Tizen.NUI.Wearable
    Assembly:
    Tizen.NUI.Wearable.dll

    [Draft] Defalt layout manager for RecyclerView. Lay out RecycleItem and recycle RecycleItem.

    public class RecycleLayoutManager
    Inheritance
    object
    RecycleLayoutManager
    Derived
    GridRecycleLayoutManager
    GridRecycleLayoutManager
    LinearRecycleLayoutManager
    LinearRecycleLayoutManager

    Properties

    View Source

    Container

    Container which contains RecycleItems.

    Declaration
    public View Container { get; set; }
    Property Value
    Type Description
    View
    View Source

    DataCount

    How far can you reach the next item.

    Declaration
    public int DataCount { get; set; }
    Property Value
    Type Description
    int
    View Source

    ItemSize

    Size of RecycleItem.

    Declaration
    public Size ItemSize { get; set; }
    Property Value
    Type Description
    Size
    View Source

    LayoutOrientation

    Get/Set the orientation in the layout.

    Declaration
    public RecycleLayoutManager.Orientation LayoutOrientation { get; set; }
    Property Value
    Type Description
    RecycleLayoutManager.Orientation
    View Source

    PrevScrollPosition

    The last scrolled position which is calculated by ScrollableBase. The value should be updated in the Recycle() method.

    Declaration
    protected float PrevScrollPosition { get; set; }
    Property Value
    Type Description
    float
    View Source

    StepSize

    How far can you reach the next item.

    Declaration
    public float StepSize { get; protected set; }
    Property Value
    Type Description
    float

    Methods

    View Source

    CalculateCandidateScrollPosition(float)

    Adjust scrolling position by own scrolling rules.

    Declaration
    public virtual float CalculateCandidateScrollPosition(float scrollPosition)
    Parameters
    Type Name Description
    float scrollPosition

    Scroll position which is calculated by ScrollableBase

    Returns
    Type Description
    float
    View Source

    CalculateLayoutOrientationSize()

    This is called to find out how much container size can be.

    Declaration
    public virtual float CalculateLayoutOrientationSize()
    Returns
    Type Description
    float
    View Source

    Layout(float)

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

    Declaration
    public virtual void Layout(float scrollPosition)
    Parameters
    Type Name Description
    float scrollPosition

    Scroll position which is calculated by ScrollableBase

    View Source

    Recycle(float)

    This is called to find out which items should be recycled according to current scroll position.

    Declaration
    public virtual List<RecycleItem> Recycle(float scrollPosition)
    Parameters
    Type Name Description
    float scrollPosition

    Scroll position which is calculated by ScrollableBase

    Returns
    Type Description
    List<><RecycleItem>

    List of RecycleItems which should be recycled.

    View Source

    RequestNextFocusableView(View, FocusDirection, bool)

    Gets the next keyboard focusable view in this control towards the given direction.
    A control needs to override this function in order to support two dimensional keyboard navigation.

    Declaration
    public virtual View RequestNextFocusableView(View currentFocusedView, View.FocusDirection direction, bool loopEnabled)
    Parameters
    Type Name Description
    View currentFocusedView

    The current focused view.

    View.FocusDirection direction

    The direction to move the focus towards.

    bool loopEnabled

    Whether the focus movement should be looped within the control.

    Returns
    Type Description
    View

    The next keyboard focusable view in this control or an empty handle if no view can be focused.

    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