Class LinearLayoutManager
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
Layout collection of views horizontally/vertically.
public class LinearLayoutManager : FlexibleViewLayoutManager
- Inheritance
- Derived
Constructors
View SourceLinearLayoutManager(int)
Creates a LinearLayoutManager with orientation.
Declaration
public LinearLayoutManager(int orientation)
Parameters
Type | Name | Description |
---|---|---|
int | orientation | Layout orientation.Should be HORIZONTAL or VERTICAL |
Fields
View SourceHORIZONTAL
Constant value: 0.
Declaration
public static readonly int HORIZONTAL
Field Value
Type | Description |
---|---|
int |
INVALID_OFFSET
Constant value: -2^31.
Declaration
public static readonly int INVALID_OFFSET
Field Value
Type | Description |
---|---|
int |
NO_POSITION
Constant value: -1.
Declaration
public static readonly int NO_POSITION
Field Value
Type | Description |
---|---|
int |
VERTICAL
Constant value: 1.
Declaration
public static readonly int VERTICAL
Field Value
Type | Description |
---|---|
int |
Properties
View SourceFirstCompleteVisibleItemPosition
Retrieves the first complete visible item position.
Declaration
public int FirstCompleteVisibleItemPosition { get; }
Property Value
Type | Description |
---|---|
int |
FirstVisibleItemPosition
Retrieves the first visible item position.
Declaration
public int FirstVisibleItemPosition { get; }
Property Value
Type | Description |
---|---|
int |
LastCompleteVisibleItemPosition
Retrieves the last complete visible item position.
Declaration
public int LastCompleteVisibleItemPosition { get; }
Property Value
Type | Description |
---|---|
int |
LastVisibleItemPosition
Retrieves the last visible item position.
Declaration
public int LastVisibleItemPosition { get; }
Property Value
Type | Description |
---|---|
int |
Orientation
Current orientation.
Declaration
protected int Orientation { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
View SourceCanScrollHorizontally()
Query if horizontal scrolling is currently supported. The default implementation returns false.
Declaration
public override bool CanScrollHorizontally()
Returns
Type | Description |
---|---|
bool |
Overrides
View SourceCanScrollVertically()
Query if vertical scrolling is currently supported. The default implementation returns false.
Declaration
public override bool CanScrollVertically()
Returns
Type | Description |
---|---|
bool |
Overrides
View SourceComputeScrollExtent()
Compute the extent of the scrollbar's thumb within the range.
Declaration
public override float ComputeScrollExtent()
Returns
Type | Description |
---|---|
float |
Overrides
View SourceComputeScrollOffset()
Compute the offset of the scrollbar's thumb within the range.
Declaration
public override float ComputeScrollOffset()
Returns
Type | Description |
---|---|
float |
Overrides
View SourceComputeScrollRange()
Compute the range that the scrollbar represents.
Declaration
public override float ComputeScrollRange()
Returns
Type | Description |
---|---|
float |
Overrides
View SourceFindFirstVisibleItemView()
Retrieves the first visible item view.
Declaration
protected override FlexibleViewViewHolder FindFirstVisibleItemView()
Returns
Type | Description |
---|---|
FlexibleViewViewHolder |
Overrides
View SourceFindLastVisibleItemView()
Retrieves the last visible item view.
Declaration
protected override FlexibleViewViewHolder FindLastVisibleItemView()
Returns
Type | Description |
---|---|
FlexibleViewViewHolder |
Overrides
View SourceGetNextPosition(int, Direction)
Retrieves a position that neighbor to current position by direction.
Declaration
protected override int GetNextPosition(int position, FlexibleViewLayoutManager.Direction direction)
Parameters
Type | Name | Description |
---|---|---|
int | position | The anchor adapter position |
FlexibleViewLayoutManager.Direction | direction | The direction. |
Returns
Type | Description |
---|---|
int |
Overrides
View SourceOnLayoutChildren(FlexibleViewRecycler)
Lay out all relevant child views from the given adapter.
Declaration
public override void OnLayoutChildren(FlexibleViewRecycler recycler)
Parameters
Type | Name | Description |
---|---|---|
FlexibleViewRecycler | recycler | Recycler to use for fetching potentially cached views for a position |
Overrides
View SourceOnLayoutCompleted()
Called after a full layout calculation is finished.
Declaration
public override void OnLayoutCompleted()
Overrides
View SourceScrollHorizontallyBy(float, FlexibleViewRecycler, bool)
Scroll horizontally by dy pixels in screen coordinates.
Declaration
public override float ScrollHorizontallyBy(float dx, FlexibleViewRecycler recycler, bool immediate)
Parameters
Type | Name | Description |
---|---|---|
float | dx | distance to scroll in pixels. Y increases as scroll position approaches the top. |
FlexibleViewRecycler | recycler | Recycler to use for fetching potentially cached views for a position |
bool | immediate | Specify if the scroll need animation |
Returns
Type | Description |
---|---|
float |
Overrides
View SourceScrollToPosition(int)
Scroll the FlexibleView to make the position visible.
Declaration
public override void ScrollToPosition(int position)
Parameters
Type | Name | Description |
---|---|---|
int | position | Scroll to this adapter position |
Overrides
View SourceScrollToPositionWithOffset(int, int)
Scroll to the specified adapter position with the given offset from resolved layout start.
Declaration
public override void ScrollToPositionWithOffset(int position, int offset)
Parameters
Type | Name | Description |
---|---|---|
int | position | Scroll to this adapter position |
int | offset | The distance (in pixels) between the start edge of the item view and start edge of the FlexibleView. |
Overrides
View SourceScrollVerticallyBy(float, FlexibleViewRecycler, bool)
Scroll vertically by dy pixels in screen coordinates.
Declaration
public override float ScrollVerticallyBy(float dy, FlexibleViewRecycler recycler, bool immediate)
Parameters
Type | Name | Description |
---|---|---|
float | dy | distance to scroll in pixels. Y increases as scroll position approaches the top. |
FlexibleViewRecycler | recycler | Recycler to use for fetching potentially cached views for a position |
bool | immediate | Specify if the scroll need animation |
Returns
Type | Description |
---|---|
float |