Class RecyclerView
Definition
- Assembly:
- Tizen.NUI.Wearable.dll
[Draft] This class provides a View that can recycle items to improve performance.
public class RecyclerView : ScrollableBase, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
- Inheritance
-
objectRecyclerView
- Derived
- Implements
-
System.IDisposable
Constructors
View SourceRecyclerView()
Default constructor.
Declaration
public RecyclerView()
RecyclerView(RecycleAdapter, RecycleLayoutManager)
A constructor of RecyclerView.
Declaration
public RecyclerView(RecycleAdapter adapter, RecycleLayoutManager layoutManager)
Parameters
| Type | Name | Description |
|---|---|---|
| RecycleAdapter | adapter | Recycle adapter of RecyclerView. |
| RecycleLayoutManager | layoutManager | Recycle layoutManager of RecyclerView. |
Properties
View SourceAdapter
Recycler adpater.
Declaration
public RecycleAdapter Adapter { get; set; }
Property Value
| Type | Description |
|---|---|
| RecycleAdapter |
LayoutManager
Recycler layoutManager.
Declaration
public RecycleLayoutManager LayoutManager { get; set; }
Property Value
| Type | Description |
|---|---|
| RecycleLayoutManager |
ScrollingDirection
Scrolling direction mode for RecyclerView. ScrollingDirection.
Declaration
public ScrollableBase.Direction ScrollingDirection { get; set; }
Property Value
| Type | Description |
|---|---|
| ScrollableBase.Direction |
TotalItemCount
Gets / Sets total number of items.
Declaration
public int TotalItemCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
View SourceAdjustTargetPositionOfScrollAnimation(float)
Adjust scrolling position by own scrolling rules. Override this function when developer wants to change destination of flicking.(e.g. always snap to center of item)
Declaration
protected override float AdjustTargetPositionOfScrollAnimation(float position)
Parameters
| Type | Name | Description |
|---|---|---|
| float | position | Scroll position which is calculated by ScrollableBase |
Returns
| Type | Description |
|---|---|
| float | Adjusted scroll destination |
Overrides
View SourceGetNextFocusableView(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 override View GetNextFocusableView(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 null if no view can be focused. |