Class GridRecycleLayoutManager
Definition
- Assembly:
- Tizen.NUI.Wearable.dll
[Draft] This class implements a grid box layout.
public class GridRecycleLayoutManager : RecycleLayoutManager
- Inheritance
Properties
View SourceColumns
[Draft] Get/Set the number of columns in the grid
Declaration
public int Columns { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Rows
[draft ]Get/Set the number of rows in the grid
Declaration
public int Rows { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
View SourceCalculateCandidateScrollPosition(float)
Adjust scrolling position by own scrolling rules.
Declaration
public override float CalculateCandidateScrollPosition(float scrollPosition)
Parameters
| Type | Name | Description |
|---|---|---|
| float | scrollPosition | Scroll position which is calculated by ScrollableBase |
Returns
| Type | Description |
|---|---|
| float |
Overrides
View SourceCalculateLayoutOrientationSize()
This is called to find out how much container size can be.
Declaration
public override float CalculateLayoutOrientationSize()
Returns
| Type | Description |
|---|---|
| float |
Overrides
View SourceLayout(float)
This is called to find out where items are lain out according to current scroll position.
Declaration
public override void Layout(float scrollPosition)
Parameters
| Type | Name | Description |
|---|---|---|
| float | scrollPosition | Scroll position which is calculated by ScrollableBase |
Overrides
View SourceRecycle(float)
This is called to find out which items should be recycled according to current scroll position.
Declaration
public override 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. |
Overrides
View SourceRequestNextFocusableView(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 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. |