Class RecyclerViewItem

    Definition

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

    This class provides a basic item for CollectionView.

    public class RecyclerViewItem : Control, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Container
    View
    ViewWrapper
    CustomView
    VisualView
    Control
    RecyclerViewItem
    Derived
    DefaultGridItem
    DefaultLinearItem
    DefaultTitleItem
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Constructors

    View Source

    RecyclerViewItem()

    Creates a new instance of RecyclerViewItem.

    Declaration
    public RecyclerViewItem()
    View Source

    RecyclerViewItem(string)

    Creates a new instance of RecyclerViewItem with style.

    Declaration
    public RecyclerViewItem(string style)
    Parameters
    Type Name Description
    string style

    Create RecyclerViewItem by special style defined in UX.

    View Source

    RecyclerViewItem(RecyclerViewItemStyle)

    Creates a new instance of a RecyclerViewItem with style.

    Declaration
    public RecyclerViewItem(RecyclerViewItemStyle itemStyle)
    Parameters
    Type Name Description
    RecyclerViewItemStyle itemStyle

    Create RecyclerViewItem by style customized by user.

    Fields

    View Source

    IsEnabledProperty

    Property of boolean Enable flag.

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

    IsSelectableProperty

    Property of boolean Selectable flag.

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

    IsSelectedProperty

    Property of boolean Selected flag.

    Declaration
    public static readonly BindableProperty IsSelectedProperty
    Field Value
    Type Description
    BindableProperty

    Properties

    View Source

    Index

    Data index which is binded to item. Can access to data using this index.

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

    IsEnabled

    Flag to decide enabled state in RecyclerViewItem. Set enabled state false makes item untouchable and unfocusable.

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

    IsFooter

    Boolean flag to check this item is footer.

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

    IsGroupFooter

    Boolean flag to check this item is group footer.

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

    IsGroupHeader

    Boolean flag to check this item is group header.

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

    IsHeader

    Boolean flag to check this item is header.

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

    IsPressed

    State of Pressed.

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

    IsRealized

    State of Realization

    Declaration
    public bool IsRealized { get; }
    Property Value
    Type Description
    bool
    View Source

    IsSelectable

    Flag to decide RecyclerViewItem can be selected or not.

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

    IsSelected

    Flag to decide selected state in RecyclerViewItem.

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

    Template

    DataTemplate of this view object

    Declaration
    public DataTemplate Template { get; }
    Property Value
    Type Description
    DataTemplate

    Methods

    View Source

    ApplyStyle(ViewStyle)

    Apply style to RecyclerViewItem.

    Declaration
    public override void ApplyStyle(ViewStyle viewStyle)
    Parameters
    Type Name Description
    ViewStyle viewStyle

    The style to apply.

    Overrides
    View.ApplyStyle(ViewStyle)
    View Source

    CreateViewStyle()

    Get ViewItem style.

    Declaration
    protected override ViewStyle CreateViewStyle()
    Returns
    Type Description
    ViewStyle

    The default ViewItem style.

    Overrides
    Control.CreateViewStyle()
    View Source

    Dispose(DisposeTypes)

    Dispose Control and all children on it.

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

    Dispose type.

    Overrides
    Control.Dispose(DisposeTypes)
    View Source

    HandleControlStateOnTouch(Touch)

    The touch event handler for ControlState. Please change ControlState value by touch state if needed.

    Declaration
    protected override bool HandleControlStateOnTouch(Touch touch)
    Parameters
    Type Name Description
    Touch touch
    Returns
    Type Description
    bool
    Overrides
    View.HandleControlStateOnTouch(Touch)
    View Source

    LayoutChild()

    Layout child, it can be override.

    Declaration
    protected virtual void LayoutChild()
    View Source

    MeasureChild()

    Measure child, it can be override.

    Declaration
    protected virtual void MeasureChild()
    View Source

    OnBindingContextChanged()

    Invoked whenever the binding context of the element changes. Implement this method to add class handling for this event.

    Declaration
    protected override void OnBindingContextChanged()
    Overrides
    Container.OnBindingContextChanged()
    View Source

    OnClicked(ClickedEventArgs)

    Called when the ViewItem is Clicked by a user

    Declaration
    protected virtual void OnClicked(ClickedEventArgs eventArgs)
    Parameters
    Type Name Description
    ClickedEventArgs eventArgs

    The click information.

    View Source

    OnControlStateChanged(ControlStateChangedEventArgs)

    Called after the View's ControlStates changed.

    Declaration
    protected override void OnControlStateChanged(View.ControlStateChangedEventArgs controlStateChangedInfo)
    Parameters
    Type Name Description
    View.ControlStateChangedEventArgs controlStateChangedInfo

    The information including state changed variables.

    Overrides
    View.OnControlStateChanged(View.ControlStateChangedEventArgs)
    View Source

    OnEnabled(bool)

    Internal callback of enabled property changes. Inherited view can override this method to implements enabled property changes.

    Declaration
    protected override void OnEnabled(bool enabled)
    Parameters
    Type Name Description
    bool enabled
    Overrides
    View.OnEnabled(bool)
    View Source

    OnFocusGained()

    Called when the control gain key input focus. Should be overridden by derived classes if they need to customize what happens when the focus is gained.

    Declaration
    public override void OnFocusGained()
    Overrides
    Control.OnFocusGained()
    View Source

    OnFocusLost()

    Called when the control loses key input focus. Should be overridden by derived classes if they need to customize what happens when the focus is lost.

    Declaration
    public override void OnFocusLost()
    Overrides
    Control.OnFocusLost()
    View Source

    OnInitialize()

    Initializes AT-SPI object.

    Declaration
    public override void OnInitialize()
    Overrides
    Control.OnInitialize()
    View Source

    OnKey(Key)

    Called after a key event is received by the view that has had its focus set.

    Declaration
    public override bool OnKey(Key key)
    Parameters
    Type Name Description
    Key key

    The key event.

    Returns
    Type Description
    bool

    True if the key event should be consumed.

    Overrides
    Control.OnKey(Key)
    View Source

    OnUpdate()

    Called when the ViewItem need to be updated

    Declaration
    protected override void OnUpdate()
    Overrides
    Control.OnUpdate()
    View Source

    UpdateContent()

    Update the Content. it can be override.

    Declaration
    protected virtual void UpdateContent()

    Events

    View Source

    Clicked

    An event for the RecyclerViewItem clicked signal which can be used to subscribe or unsubscribe the event handler provided by the user.

    Declaration
    public event EventHandler<ClickedEventArgs> Clicked
    Event Type
    Type Description
    EventHandler<><ClickedEventArgs>

    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