Class LinearLayoutManager

Definition

Namespace:
Tizen.NUI.Components
Assembly:
Tizen.NUI.Components.dll

Layout collection of views horizontally/vertically.

C#
Copy
public class LinearLayoutManager : FlexibleViewLayoutManager
Inheritance
Derived

Constructors

View Source

LinearLayoutManager(Int32)

Creates a LinearLayoutManager with orientation.

Declaration
C#
Copy
public LinearLayoutManager(int orientation)
Parameters
Type Name Description
Int32 orientation

Layout orientation.Should be HORIZONTAL or VERTICAL

API Level: 6

Fields

View Source

HORIZONTAL

Constant value: 0.

Declaration
C#
Copy
public static readonly int HORIZONTAL
Field Value
Type Description
Int32
API Level: 6
View Source

INVALID_OFFSET

Constant value: -2^31.

Declaration
C#
Copy
public static readonly int INVALID_OFFSET
Field Value
Type Description
Int32
API Level: 6
View Source

NO_POSITION

Constant value: -1.

Declaration
C#
Copy
public static readonly int NO_POSITION
Field Value
Type Description
Int32
API Level: 6
View Source

VERTICAL

Constant value: 1.

Declaration
C#
Copy
public static readonly int VERTICAL
Field Value
Type Description
Int32
API Level: 6

Properties

View Source

FirstCompleteVisibleItemPosition

Retrieves the first complete visible item position.

Declaration
C#
Copy
public int FirstCompleteVisibleItemPosition { get; }
Property Value
Type Description
Int32
API Level: 6
View Source

FirstVisibleItemPosition

Retrieves the first visible item position.

Declaration
C#
Copy
public int FirstVisibleItemPosition { get; }
Property Value
Type Description
Int32
API Level: 6
View Source

LastCompleteVisibleItemPosition

Retrieves the last complete visible item position.

Declaration
C#
Copy
public int LastCompleteVisibleItemPosition { get; }
Property Value
Type Description
Int32
API Level: 6
View Source

LastVisibleItemPosition

Retrieves the last visible item position.

Declaration
C#
Copy
public int LastVisibleItemPosition { get; }
Property Value
Type Description
Int32
API Level: 6
View Source

Orientation

Current orientation.

Declaration
C#
Copy
protected int Orientation { get; set; }
Property Value
Type Description
Int32
API Level: 6

Methods

View Source

CanScrollHorizontally()

Query if horizontal scrolling is currently supported. The default implementation returns false.

Declaration
C#
Copy
public override bool CanScrollHorizontally()
Returns
Type Description
Boolean
Overrides
API Level: 6
View Source

CanScrollVertically()

Query if vertical scrolling is currently supported. The default implementation returns false.

Declaration
C#
Copy
public override bool CanScrollVertically()
Returns
Type Description
Boolean
Overrides
API Level: 6
View Source

ComputeScrollExtent()

Compute the extent of the scrollbar's thumb within the range.

Declaration
C#
Copy
public override float ComputeScrollExtent()
Returns
Type Description
Single
Overrides
API Level: 6
View Source

ComputeScrollOffset()

Compute the offset of the scrollbar's thumb within the range.

Declaration
C#
Copy
public override float ComputeScrollOffset()
Returns
Type Description
Single
Overrides
API Level: 6
View Source

ComputeScrollRange()

Compute the range that the scrollbar represents.

Declaration
C#
Copy
public override float ComputeScrollRange()
Returns
Type Description
Single
Overrides
API Level: 6
View Source

FindFirstVisibleItemView()

Retrieves the first visible item view.

Declaration
C#
Copy
protected override FlexibleViewViewHolder FindFirstVisibleItemView()
Returns
Type Description
FlexibleViewViewHolder
Overrides
View Source

FindLastVisibleItemView()

Retrieves the last visible item view.

Declaration
C#
Copy
protected override FlexibleViewViewHolder FindLastVisibleItemView()
Returns
Type Description
FlexibleViewViewHolder
Overrides
View Source

GetNextPosition(Int32, FlexibleViewLayoutManager.Direction)

Retrieves a position that neighbor to current position by direction.

Declaration
C#
Copy
protected override int GetNextPosition(int position, FlexibleViewLayoutManager.Direction direction)
Parameters
Type Name Description
Int32 position

The anchor adapter position

FlexibleViewLayoutManager.Direction direction

The direction.

Returns
Type Description
Int32
Overrides
View Source

OnLayoutChildren(FlexibleViewRecycler)

Lay out all relevant child views from the given adapter.

Declaration
C#
Copy
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 Source

OnLayoutCompleted()

Called after a full layout calculation is finished.

Declaration
C#
Copy
public override void OnLayoutCompleted()
Overrides
API Level: 6
View Source

ScrollHorizontallyBy(Single, FlexibleViewRecycler, Boolean)

Scroll horizontally by dy pixels in screen coordinates.

Declaration
C#
Copy
public override float ScrollHorizontallyBy(float dx, FlexibleViewRecycler recycler, bool immediate)
Parameters
Type Name Description
Single 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

Boolean immediate

Specify if the scroll need animation

Returns
Type Description
Single
Overrides
View Source

ScrollToPosition(Int32)

Scroll the FlexibleView to make the position visible.

Declaration
C#
Copy
public override void ScrollToPosition(int position)
Parameters
Type Name Description
Int32 position

Scroll to this adapter position

Overrides
API Level: 6
View Source

ScrollToPositionWithOffset(Int32, Int32)

Scroll to the specified adapter position with the given offset from resolved layout start.

Declaration
C#
Copy
public override void ScrollToPositionWithOffset(int position, int offset)
Parameters
Type Name Description
Int32 position

Scroll to this adapter position

Int32 offset

The distance (in pixels) between the start edge of the item view and start edge of the FlexibleView.

Overrides
API Level: 6
View Source

ScrollVerticallyBy(Single, FlexibleViewRecycler, Boolean)

Scroll vertically by dy pixels in screen coordinates.

Declaration
C#
Copy
public override float ScrollVerticallyBy(float dy, FlexibleViewRecycler recycler, bool immediate)
Parameters
Type Name Description
Single 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

Boolean immediate

Specify if the scroll need animation

Returns
Type Description
Single
Overrides

Extension Methods