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.
public class FlexibleView : Control, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
- Inheritance
-
- Implements
-
Constructors
View Source
FlexibleView()
Creates a FlexibleView instance.
Declaration
API Level: 6
Fields
Declaration
public static readonly BindableProperty FocusedItemIndexProperty
Field Value
Declaration
public static readonly int INVALID_TYPE
Field Value
API Level: 6
Declaration
public static readonly int NO_POSITION
Field Value
API Level: 6
Declaration
public static readonly BindableProperty PaddingProperty
Field Value
Properties
View Source
FocusedItemIndex
Gets or sets the focused item index(adapter position).
Declaration
public int FocusedItemIndex { get; set; }
Property Value
API Level: 6
Declaration
public Extents Padding { get; set; }
Property Value
API Level: 6
Methods
Declaration
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
protected override ViewStyle CreateViewStyle()
Returns
Overrides
API Level: 6
View Source
Detach the scrollbar from this FlexibleView.
Declaration
public void DetachScrollBar()
API Level: 6
View Source
Dispose(DisposeTypes)
you can override it to clean-up your own resources.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
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
public FlexibleViewViewHolder FindViewHolderForAdapterPosition(int position)
Parameters
Type |
Name |
Description |
Int32 |
position |
The position of the item in the data set of the adapter
|
Returns
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
public FlexibleViewViewHolder FindViewHolderForLayoutPosition(int position)
Parameters
Type |
Name |
Description |
Int32 |
position |
The position of the item in the data set of the adapter
|
Returns
View Source
GetAdapter()
Retrieves the previously set adapter or null if no adapter is set.
Declaration
public FlexibleViewAdapter GetAdapter()
Returns
View Source
GetLayoutManager()
Return the FlexibleViewLayoutManager currently responsible for layout policy for this FlexibleView.
Declaration
public FlexibleViewLayoutManager GetLayoutManager()
Returns
View Source
GetRecycler()
Return the recycler instance.
Declaration
public FlexibleViewRecycler GetRecycler()
Returns
View Source
MoveFocus(FlexibleViewLayoutManager.Direction)
Declaration
public void MoveFocus(FlexibleViewLayoutManager.Direction direction)
Parameters
View Source
OnRelayout(Vector2, RelayoutContainer)
you can override it to relayout elements.
Declaration
public override void OnRelayout(Vector2 size, RelayoutContainer container)
Parameters
Overrides
API Level: 6
View Source
Convenience method to scroll to a certain position
Declaration
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
public void SetAdapter(FlexibleViewAdapter adapter)
Parameters
View Source
SetLayoutManager(FlexibleViewLayoutManager)
Set the FlexibleViewLayoutManager that this FlexibleView will use.
Declaration
public void SetLayoutManager(FlexibleViewLayoutManager layoutManager)
Parameters
Events
Declaration
public event EventHandler<FlexibleViewItemClickedEventArgs> ItemClicked
Event Type
Declaration
public event EventHandler<FlexibleViewItemTouchEventArgs> ItemTouch
Event Type
View Source
StyleChanged
Style changed, for example default font size.
Declaration
public event EventHandler<StyleManager.StyleChangedEventArgs> StyleChanged
Event Type
API Level: 6
Implements
Extension Methods