Class FlexibleView

    Definition

    Namespace:
    Tizen.NUI.Components
    Assembly:
    Tizen.NUI.Components.dll

    A flexible view for providing a limited window into a large data set.

    public class FlexibleView : Control, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Container
    View
    ViewWrapper
    CustomView
    VisualView
    Control
    FlexibleView
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Constructors

    View Source

    FlexibleView()

    Creates a FlexibleView instance.

    Declaration
    public FlexibleView()

    Fields

    View Source

    FocusedItemIndexProperty

    FocusedItemIndexProperty

    Declaration
    public static readonly BindableProperty FocusedItemIndexProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    INVALID_TYPE

    Constant value: -1.

    Declaration
    public static readonly int INVALID_TYPE
    Field Value
    Type Description
    int
    View Source

    NO_POSITION

    Constant value: -1.

    Declaration
    public static readonly int NO_POSITION
    Field Value
    Type Description
    int
    View Source

    PaddingProperty

    PaddingProperty

    Declaration
    public static readonly BindableProperty PaddingProperty
    Field Value
    Type Description
    BindableProperty

    Properties

    View Source

    FocusedItemIndex

    Gets or sets the focused item index(adapter position).

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

    Padding

    overwrite the Padding.

    Declaration
    public Extents Padding { get; set; }
    Property Value
    Type Description
    Extents

    Methods

    View Source

    AttachScrollBar(ScrollBar)

    Attach a scrollbar to this FlexibleView.

    Declaration
    public void AttachScrollBar(ScrollBar scrollBar)
    Parameters
    Type Name Description
    ScrollBar scrollBar

    ScrollBar

    View Source

    CreateViewStyle()

    you can override it to create your own default style.

    Declaration
    protected override ViewStyle CreateViewStyle()
    Returns
    Type Description
    ViewStyle
    Overrides
    Control.CreateViewStyle()
    View Source

    DetachScrollBar()

    Detach the scrollbar from this FlexibleView.

    Declaration
    public void DetachScrollBar()
    View Source

    Dispose(DisposeTypes)

    you can override it to clean-up your own resources.

    Declaration
    protected override void Dispose(DisposeTypes type)
    Parameters
    Type Name Description
    DisposeTypes type

    DisposeTypes

    Overrides
    Control.Dispose(DisposeTypes)
    View Source

    FindViewHolderForAdapterPosition(int)

    Return the FlexibleViewViewHolder for the item in the given position of the data set. This method checks only the children of FlexibleViewRecyclerView. If the item at the given position is not laid out, it will not create a new one.

    Declaration
    public FlexibleViewViewHolder FindViewHolderForAdapterPosition(int position)
    Parameters
    Type Name Description
    int position

    The position of the item in the data set of the adapter

    Returns
    Type Description
    FlexibleViewViewHolder
    View Source

    FindViewHolderForLayoutPosition(int)

    Return the FlexibleViewViewHolder for the item in the given position of the data set as of the latest layout pass. This method checks only the children of FlexibleViewRecyclerView. If the item at the given position is not laid out, it will not create a new one.

    Declaration
    public FlexibleViewViewHolder FindViewHolderForLayoutPosition(int position)
    Parameters
    Type Name Description
    int position

    The position of the item in the data set of the adapter

    Returns
    Type Description
    FlexibleViewViewHolder
    View Source

    GetAdapter()

    Retrieves the previously set adapter or null if no adapter is set.

    Declaration
    public FlexibleViewAdapter GetAdapter()
    Returns
    Type Description
    FlexibleViewAdapter
    View Source

    GetLayoutManager()

    Return the FlexibleViewLayoutManager currently responsible for layout policy for this FlexibleView.

    Declaration
    public FlexibleViewLayoutManager GetLayoutManager()
    Returns
    Type Description
    FlexibleViewLayoutManager
    View Source

    GetRecycler()

    Return the recycler instance.

    Declaration
    public FlexibleViewRecycler GetRecycler()
    Returns
    Type Description
    FlexibleViewRecycler
    View Source

    MoveFocus(Direction)

    Move focus by direction.

    Declaration
    public void MoveFocus(FlexibleViewLayoutManager.Direction direction)
    Parameters
    Type Name Description
    FlexibleViewLayoutManager.Direction direction

    Direction. Should be "Left", "Right", "Up" or "Down"

    View Source

    OnRelayout(Vector2, RelayoutContainer)

    you can override it to relayout elements.

    Declaration
    public override void OnRelayout(Vector2 size, RelayoutContainer container)
    Parameters
    Type Name Description
    Vector2 size
    RelayoutContainer container
    Overrides
    Control.OnRelayout(Vector2, RelayoutContainer)
    View Source

    ScrollToPositionWithOffset(int, int)

    Convenience method to scroll to a certain position

    Declaration
    public void ScrollToPositionWithOffset(int position, int offset)
    Parameters
    Type Name Description
    int position

    Adapter position

    int offset

    The distance (in pixels) between the start edge of the item view and start edge of the FlexibleView.

    View Source

    SetAdapter(FlexibleViewAdapter)

    Set a new adapter to provide child views on demand.

    Declaration
    public void SetAdapter(FlexibleViewAdapter adapter)
    Parameters
    Type Name Description
    FlexibleViewAdapter adapter
    View Source

    SetLayoutManager(FlexibleViewLayoutManager)

    Set the FlexibleViewLayoutManager that this FlexibleView will use.

    Declaration
    public void SetLayoutManager(FlexibleViewLayoutManager layoutManager)
    Parameters
    Type Name Description
    FlexibleViewLayoutManager layoutManager

    Events

    View Source

    ItemClicked

    Item click event.

    Declaration
    public event EventHandler<FlexibleViewItemClickedEventArgs> ItemClicked
    Event Type
    Type Description
    EventHandler<><FlexibleViewItemClickedEventArgs>
    View Source

    ItemTouch

    Item touch event.

    Declaration
    public event EventHandler<FlexibleViewItemTouchEventArgs> ItemTouch
    Event Type
    Type Description
    EventHandler<><FlexibleViewItemTouchEventArgs>
    View Source

    StyleChanged

    Style changed, for example default font size.

    Declaration
    public event EventHandler<StyleManager.StyleChangedEventArgs> StyleChanged
    Event Type
    Type Description
    EventHandler<><StyleChangedEventArgs>

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Extension Methods

    ViewExtensions.BackgroundColor(View)
    ViewExtensions.BorderlineColor(View)
    ViewExtensions.BoxShadow(View)
    ViewExtensions.Color(View)
    ViewExtensions.CornerRadius(View)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    ViewExtensions.BackgroundColor<T>(T, float, float, float, float)
    ViewExtensions.BackgroundColor<T>(T, uint, float)
    ViewExtensions.BackgroundColor<T>(T, UIColor)
    ViewExtensions.BackgroundImage<T>(T, string)
    ViewExtensions.Borderline<T>(T, float, UIColor, float)
    ViewExtensions.BorderlineColor<T>(T, float, float, float, float)
    ViewExtensions.BorderlineColor<T>(T, uint, float)
    ViewExtensions.BorderlineColor<T>(T, UIColor)
    ViewExtensions.BorderlineOffset<T>(T, float)
    ViewExtensions.BorderlineWidth<T>(T, float)
    ViewExtensions.BoxShadow<T>(T, float, float, float)
    ViewExtensions.BoxShadow<T>(T, float, UIColor, float, float)
    ViewExtensions.BoxShadow<T>(T, UIShadow)
    ViewExtensions.ClippingMode<T>(T, ClippingModeType)
    ViewExtensions.Color<T>(T, float, float, float, float)
    ViewExtensions.Color<T>(T, uint, float)
    ViewExtensions.Color<T>(T, UIColor)
    ViewExtensions.CornerRadius<T>(T, float, bool)
    ViewExtensions.CornerRadius<T>(T, float, float, float, float, bool)
    ViewExtensions.CornerRadius<T>(T, UICorner)
    ViewExtensions.Focusable<T>(T, bool)
    ViewExtensions.FocusableChildren<T>(T, bool)
    ViewExtensions.FocusableInTouch<T>(T, bool)
    ViewExtensions.ImageShadow<T>(T, ImageShadow)
    ViewExtensions.IsEnabled<T>(T, bool)
    ViewExtensions.Layout<T>(T, LayoutItem)
    ViewExtensions.Opacity<T>(T, float)
    ViewExtensions.Position<T>(T, float, float)
    ViewExtensions.PositionX<T>(T, float)
    ViewExtensions.PositionY<T>(T, float)
    ViewExtensions.Scale<T>(T, float, float)
    ViewExtensions.ScaleX<T>(T, float)
    ViewExtensions.ScaleY<T>(T, float)
    ViewExtensions.Sensitive<T>(T, bool)
    ViewExtensions.Size<T>(T, float, float)
    ViewExtensions.SizeHeight<T>(T, float)
    ViewExtensions.SizeWidth<T>(T, float)
    ViewExtensions.Visibility<T>(T, bool)
    ViewExtensions.VoiceInteractionName<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