belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
ScrollingView
public
interface
ScrollingView
android.support.v4.view.ScrollingView |
![]() |
An interface that can be implemented by Views to provide scroll related APIs.
Summary
Public methods | |
---|---|
abstract
int
|
computeHorizontalScrollExtent()
Compute the horizontal extent of the horizontal scrollbar's thumb within the horizontal range. |
abstract
int
|
computeHorizontalScrollOffset()
Compute the horizontal offset of the horizontal scrollbar's thumb within the horizontal range. |
abstract
int
|
computeHorizontalScrollRange()
Compute the horizontal range that the horizontal scrollbar represents. |
abstract
int
|
computeVerticalScrollExtent()
Compute the vertical extent of the vertical scrollbar's thumb within the vertical range. |
abstract
int
|
computeVerticalScrollOffset()
Compute the vertical offset of the vertical scrollbar's thumb within the horizontal range. |
abstract
int
|
computeVerticalScrollRange()
Compute the vertical range that the vertical scrollbar represents. |
Public methods
computeHorizontalScrollExtent
int computeHorizontalScrollExtent ()
Compute the horizontal extent of the horizontal scrollbar's thumb within the horizontal range. This value is used to compute the length of the thumb within the scrollbar's track.
The range is expressed in arbitrary units that must be the same as the
units used by computeHorizontalScrollRange()
and
computeHorizontalScrollOffset()
.
The default extent is the drawing width of this view.
Returns | |
---|---|
int |
the horizontal extent of the scrollbar's thumb |
computeHorizontalScrollOffset
int computeHorizontalScrollOffset ()
Compute the horizontal offset of the horizontal scrollbar's thumb within the horizontal range. This value is used to compute the position of the thumb within the scrollbar's track.
The range is expressed in arbitrary units that must be the same as the
units used by computeHorizontalScrollRange()
and
computeHorizontalScrollExtent()
.
The default offset is the scroll offset of this view.
Returns | |
---|---|
int |
the horizontal offset of the scrollbar's thumb |