Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
Layout collection of views horizontally/vertically.
public class LinearLayoutManager : FlexibleViewLayoutManager
- Inheritance
-
- Derived
-
Constructors
View Source
LinearLayoutManager(Int32)
Creates a LinearLayoutManager with orientation.
Declaration
public LinearLayoutManager(int orientation)
Parameters
Type |
Name |
Description |
Int32 |
orientation |
Layout orientation.Should be HORIZONTAL or VERTICAL
|
API Level: 6
Fields
Declaration
public static readonly int HORIZONTAL
Field Value
API Level: 6
Declaration
public static readonly int INVALID_OFFSET
Field Value
API Level: 6
Declaration
public static readonly int NO_POSITION
Field Value
API Level: 6
Declaration
public static readonly int VERTICAL
Field Value
API Level: 6
Properties
View Source
FirstCompleteVisibleItemPosition
Retrieves the first complete visible item position.
Declaration
public int FirstCompleteVisibleItemPosition { get; }
Property Value
API Level: 6
View Source
FirstVisibleItemPosition
Retrieves the first visible item position.
Declaration
public int FirstVisibleItemPosition { get; }
Property Value
API Level: 6
View Source
LastCompleteVisibleItemPosition
Retrieves the last complete visible item position.
Declaration
public int LastCompleteVisibleItemPosition { get; }
Property Value
API Level: 6
View Source
LastVisibleItemPosition
Retrieves the last visible item position.
Declaration
public int LastVisibleItemPosition { get; }
Property Value
API Level: 6
Declaration
protected int Orientation { get; set; }
Property Value
API Level: 6
Methods
View Source
Query if horizontal scrolling is currently supported. The default implementation returns false.
Declaration
public override bool CanScrollHorizontally()
Returns
Overrides
API Level: 6
View Source
Query if vertical scrolling is currently supported. The default implementation returns false.
Declaration
public override bool CanScrollVertically()
Returns
Overrides
API Level: 6
View Source
Compute the extent of the scrollbar's thumb within the range.
Declaration
public override float ComputeScrollExtent()
Returns
Overrides
API Level: 6
View Source
Compute the offset of the scrollbar's thumb within the range.
Declaration
public override float ComputeScrollOffset()
Returns
Overrides
API Level: 6
View Source
Compute the range that the scrollbar represents.
Declaration
public override float ComputeScrollRange()
Returns
Overrides
API Level: 6
View Source
FindFirstVisibleItemView()
Retrieves the first visible item view.
Declaration
protected override FlexibleViewViewHolder FindFirstVisibleItemView()
Returns
Overrides
View Source
FindLastVisibleItemView()
Retrieves the last visible item view.
Declaration
protected override FlexibleViewViewHolder FindLastVisibleItemView()
Returns
Overrides
View Source
GetNextPosition(Int32, FlexibleViewLayoutManager.Direction)
Retrieves a position that neighbor to current position by direction.
Declaration
protected override int GetNextPosition(int position, FlexibleViewLayoutManager.Direction direction)
Parameters
Returns
Overrides
View Source
OnLayoutChildren(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 Source
OnLayoutCompleted()
Called after a full layout calculation is finished.
Declaration
public override void OnLayoutCompleted()
Overrides
API Level: 6
View Source
Scroll horizontally by dy pixels in screen coordinates.
Declaration
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
Overrides
View Source
Scroll the FlexibleView to make the position visible.
Declaration
public override void ScrollToPosition(int position)
Parameters
Type |
Name |
Description |
Int32 |
position |
Scroll to this adapter position
|
Overrides
API Level: 6
View Source
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 |
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
Scroll vertically by dy pixels in screen coordinates.
Declaration
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
Overrides
Extension Methods