Class RecycleLayoutManager
Definition
- Assembly:
- Tizen.NUI.Wearable.dll
[Draft] Defalt layout manager for RecyclerView. Lay out RecycleItem and recycle RecycleItem.
public class RecycleLayoutManager
- Inheritance
-
objectRecycleLayoutManager
- Derived
Properties
View SourceContainer
Container which contains RecycleItems.
Declaration
public View Container { get; set; }
Property Value
Type | Description |
---|---|
View |
DataCount
How far can you reach the next item.
Declaration
public int DataCount { get; set; }
Property Value
Type | Description |
---|---|
int |
ItemSize
Size of RecycleItem.
Declaration
public Size ItemSize { get; set; }
Property Value
Type | Description |
---|---|
Size |
LayoutOrientation
Get/Set the orientation in the layout.
Declaration
public RecycleLayoutManager.Orientation LayoutOrientation { get; set; }
Property Value
Type | Description |
---|---|
RecycleLayoutManager.Orientation |
PrevScrollPosition
The last scrolled position which is calculated by ScrollableBase. The value should be updated in the Recycle() method.
Declaration
protected float PrevScrollPosition { get; set; }
Property Value
Type | Description |
---|---|
float |
StepSize
How far can you reach the next item.
Declaration
public float StepSize { get; protected set; }
Property Value
Type | Description |
---|---|
float |
Methods
View SourceCalculateCandidateScrollPosition(float)
Adjust scrolling position by own scrolling rules.
Declaration
public virtual float CalculateCandidateScrollPosition(float scrollPosition)
Parameters
Type | Name | Description |
---|---|---|
float | scrollPosition | Scroll position which is calculated by ScrollableBase |
Returns
Type | Description |
---|---|
float |
CalculateLayoutOrientationSize()
This is called to find out how much container size can be.
Declaration
public virtual float CalculateLayoutOrientationSize()
Returns
Type | Description |
---|---|
float |
Layout(float)
This is called to find out where items are lain out according to current scroll position.
Declaration
public virtual void Layout(float scrollPosition)
Parameters
Type | Name | Description |
---|---|---|
float | scrollPosition | Scroll position which is calculated by ScrollableBase |
Recycle(float)
This is called to find out which items should be recycled according to current scroll position.
Declaration
public virtual List<RecycleItem> Recycle(float scrollPosition)
Parameters
Type | Name | Description |
---|---|---|
float | scrollPosition | Scroll position which is calculated by ScrollableBase |
Returns
Type | Description |
---|---|
List<><RecycleItem> | List of RecycleItems which should be recycled. |
RequestNextFocusableView(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 virtual View RequestNextFocusableView(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 an empty handle if no view can be focused. |