- Most functions operate on
HorizontalArrangement
andVerticalArrangement
, wrapping them inScrollView
orHorizontalScrollView
to enable scrolling.
Functions and Parameters
- EnableHorizontalScrolling
- Description: Wraps a
HorizontalArrangement
inside aHorizontalScrollView
to enable horizontal scrolling. - Parameters:
arrangement
(HorizontalArrangement): The horizontal arrangement to be wrapped inside theHorizontalScrollView
.
- Description: Wraps a
- EnableVerticalScrolling
- Description: Wraps a
VerticalArrangement
inside aScrollView
to enable vertical scrolling. - Parameters:
arrangement
(VerticalArrangement): The vertical arrangement to be wrapped inside theScrollView
.
- Description: Wraps a
- EnableHorizontalScrollbar
- Description: Enables the horizontal scrollbar for a
HorizontalArrangement
. - Parameters:
arrangement
(HorizontalArrangement): The horizontal arrangement for which the scrollbar will be enabled.
- Description: Enables the horizontal scrollbar for a
- DisableHorizontalScrollbar
- Description: Disables the horizontal scrollbar for a
HorizontalArrangement
. - Parameters:
arrangement
(HorizontalArrangement): The horizontal arrangement for which the scrollbar will be disabled.
- Description: Disables the horizontal scrollbar for a
- EnableVerticalScrollbar
- Description: Enables the vertical scrollbar for a
VerticalArrangement
. - Parameters:
arrangement
(VerticalArrangement): The vertical arrangement for which the scrollbar will be enabled.
- Description: Enables the vertical scrollbar for a
- DisableVerticalScrollbar
- Description: Disables the vertical scrollbar for a
VerticalArrangement
. - Parameters:
arrangement
(VerticalArrangement): The vertical arrangement for which the scrollbar will be disabled.
- Description: Disables the vertical scrollbar for a
- SetHorizontalSmoothScrolling
- Description: Sets smooth scrolling for a
HorizontalArrangement
. - Parameters:
arrangement
(HorizontalArrangement): The horizontal arrangement for which smooth scrolling will be enabled.enabled
(boolean): Indicates whether smooth scrolling is enabled or not.
- Description: Sets smooth scrolling for a
- SetVerticalSmoothScrolling
- Description: Sets smooth scrolling for a
VerticalArrangement
. - Parameters:
arrangement
(VerticalArrangement): The vertical arrangement for which smooth scrolling will be enabled.enabled
(boolean): Indicates whether smooth scrolling is enabled or not.
- Description: Sets smooth scrolling for a
- ScrollToHorizontalPosition
- Description: Scrolls to a specific position in a
HorizontalArrangement
. - Parameters:
arrangement
(HorizontalArrangement): The horizontal arrangement to which the scroll will be applied.position
(int): The horizontal position to scroll to.
- Description: Scrolls to a specific position in a
- ScrollToVerticalPosition
- Description: Scrolls to a specific position in a
VerticalArrangement
. - Parameters:
arrangement
(VerticalArrangement): The vertical arrangement to which the scroll will be applied.position
(int): The vertical position to scroll to.
- Description: Scrolls to a specific position in a
- HideHorizontalScrollbar
- Description: Hides the horizontal scrollbar for a
HorizontalArrangement
. - Parameters:
arrangement
(HorizontalArrangement): The horizontal arrangement for which the scrollbar will be hidden.
- Description: Hides the horizontal scrollbar for a
- ShowHorizontalScrollbar
- Description: Shows the horizontal scrollbar for a
HorizontalArrangement
. - Parameters:
arrangement
(HorizontalArrangement): The horizontal arrangement for which the scrollbar will be shown.
- Description: Shows the horizontal scrollbar for a
- HideVerticalScrollbar
- Description: Hides the vertical scrollbar for a
VerticalArrangement
. - Parameters:
arrangement
(VerticalArrangement): The vertical arrangement for which the scrollbar will be hidden.
- Description: Hides the vertical scrollbar for a
- ShowVerticalScrollbar
- Description: Shows the vertical scrollbar for a
VerticalArrangement
. - Parameters:
arrangement
(VerticalArrangement): The vertical arrangement for which the scrollbar will be shown.
- Description: Shows the vertical scrollbar for a
- ScrollByHorizontalOffset
- Description: Scrolls the content of a
HorizontalArrangement
by a specified offset. - Parameters:
arrangement
(HorizontalArrangement): The horizontal arrangement to which the scroll will be applied.offset
(int): The horizontal offset to scroll by.
- Description: Scrolls the content of a
- ScrollByVerticalOffset
- Description: Scrolls the content of a
VerticalArrangement
by a specified offset. - Parameters:
arrangement
(VerticalArrangement): The vertical arrangement to which the scroll will be applied.offset
(int): The vertical offset to scroll by.
- Description: Scrolls the content of a
Example video:
Extension:
JoeDevScrollbar.aix (8.9 KB)
Thanks.