Class FlexibleView

Definition

Namespace:
Tizen.NUI.Components
Assembly:
Tizen.NUI.Components.dll
API Level:
6

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

C#
Copy
public class FlexibleView : Control, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
Inheritance
Implements

Constructors

View Source

FlexibleView()

Creates a FlexibleView instance.

Declaration
C#
Copy
public FlexibleView()
API Level: 6

Fields

View Source

FocusedItemIndexProperty

FocusedItemIndexProperty

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

INVALID_TYPE

Constant value: -1.

Declaration
C#
Copy
public static readonly int INVALID_TYPE
Field Value
Type Description
Int32
API Level: 6
View Source

NO_POSITION

Constant value: -1.

Declaration
C#
Copy
public static readonly int NO_POSITION
Field Value
Type Description
Int32
API Level: 6
View Source

PaddingProperty

PaddingProperty

Declaration
C#
Copy
public static readonly BindableProperty PaddingProperty
Field Value
Type Description
BindableProperty

Properties

View Source

FocusedItemIndex

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

Declaration
C#
Copy
public int FocusedItemIndex { get; set; }
Property Value
Type Description
Int32
API Level: 6
View Source

Padding

overwrite the Padding.

Declaration
C#
Copy
public Extents Padding { get; set; }
Property Value
Type Description
Extents
API Level: 6

Methods

View Source

AttachScrollBar(ScrollBar)

Attach a scrollbar to this FlexibleView.

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

ScrollBar

API Level: 6
View Source

CreateViewStyle()

you can override it to create your own default style.

Declaration
C#
Copy
protected override ViewStyle CreateViewStyle()
Returns
Type Description
ViewStyle
Overrides
API Level: 6
View Source

DetachScrollBar()

Detach the scrollbar from this FlexibleView.

Declaration
C#
Copy
public void DetachScrollBar()
API Level: 6
View Source

Dispose(DisposeTypes)

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

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

DisposeTypes

Overrides
API Level: 6
View Source

FindViewHolderForAdapterPosition(Int32)

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
C#
Copy
public FlexibleViewViewHolder FindViewHolderForAdapterPosition(int position)
Parameters
Type Name Description
Int32 position

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

Returns
Type Description
FlexibleViewViewHolder
View Source

FindViewHolderForLayoutPosition(Int32)

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
C#
Copy
public FlexibleViewViewHolder FindViewHolderForLayoutPosition(int position)
Parameters
Type Name Description
Int32 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
C#
Copy
public FlexibleViewAdapter GetAdapter()
Returns
Type Description
FlexibleViewAdapter
View Source

GetLayoutManager()

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

Declaration
C#
Copy
public FlexibleViewLayoutManager GetLayoutManager()
Returns
Type Description
FlexibleViewLayoutManager
View Source

GetRecycler()

Return the recycler instance.

Declaration
C#
Copy
public FlexibleViewRecycler GetRecycler()
Returns
Type Description
FlexibleViewRecycler
View Source

MoveFocus(FlexibleViewLayoutManager.Direction)

Move focus by direction.

Declaration
C#
Copy
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
C#
Copy
public override void OnRelayout(Vector2 size, RelayoutContainer container)
Parameters
Type Name Description
Vector2 size
RelayoutContainer container
Overrides
API Level: 6
View Source

ScrollToPositionWithOffset(Int32, Int32)

Convenience method to scroll to a certain position

Declaration
C#
Copy
public void ScrollToPositionWithOffset(int position, int offset)
Parameters
Type Name Description
Int32 position

Adapter position

Int32 offset

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

API Level: 6
View Source

SetAdapter(FlexibleViewAdapter)

Set a new adapter to provide child views on demand.

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

SetLayoutManager(FlexibleViewLayoutManager)

Set the FlexibleViewLayoutManager that this FlexibleView will use.

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

Events

View Source

ItemClicked

Item click event.

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

ItemTouch

Item touch event.

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

StyleChanged

Style changed, for example default font size.

Declaration
C#
Copy
public event EventHandler<StyleManager.StyleChangedEventArgs> StyleChanged
Event Type
Type Description
EventHandler<StyleManager.StyleChangedEventArgs>
API Level: 6

Implements

Extension Methods