public interface ScrollingView
Modifier and Type | Method and Description |
---|---|
int |
computeHorizontalScrollExtent()
Compute the horizontal extent of the horizontal scrollbar's thumb
within the horizontal range.
|
int |
computeHorizontalScrollOffset()
Compute the horizontal offset of the horizontal scrollbar's thumb
within the horizontal range.
|
int |
computeHorizontalScrollRange()
Compute the horizontal range that the horizontal scrollbar
represents.
|
int |
computeVerticalScrollExtent()
Compute the vertical extent of the vertical scrollbar's thumb
within the vertical range.
|
int |
computeVerticalScrollOffset()
Compute the vertical offset of the vertical scrollbar's thumb
within the horizontal range.
|
int |
computeVerticalScrollRange()
Compute the vertical range that the vertical scrollbar represents.
|
int computeHorizontalScrollRange()
Compute the horizontal range that the horizontal scrollbar represents.
The range is expressed in arbitrary units that must be the same as the
units used by computeHorizontalScrollExtent()
and
computeHorizontalScrollOffset()
.
The default range is the drawing width of this view.
computeHorizontalScrollExtent()
,
computeHorizontalScrollOffset()
,
ScrollBarDrawable
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.
computeHorizontalScrollRange()
,
computeHorizontalScrollExtent()
,
ScrollBarDrawable
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.
computeHorizontalScrollRange()
,
computeHorizontalScrollOffset()
,
ScrollBarDrawable
int computeVerticalScrollRange()
Compute the vertical range that the vertical scrollbar represents.
The range is expressed in arbitrary units that must be the same as the
units used by computeVerticalScrollExtent()
and
computeVerticalScrollOffset()
.
The default range is the drawing height of this view.
computeVerticalScrollExtent()
,
computeVerticalScrollOffset()
,
ScrollBarDrawable
int computeVerticalScrollOffset()
Compute the vertical offset of the vertical 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 computeVerticalScrollRange()
and
computeVerticalScrollExtent()
.
The default offset is the scroll offset of this view.
computeVerticalScrollRange()
,
computeVerticalScrollExtent()
,
ScrollBarDrawable
int computeVerticalScrollExtent()
Compute the vertical extent of the vertical scrollbar's thumb within the vertical 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 computeVerticalScrollRange()
and
computeVerticalScrollOffset()
.
The default extent is the drawing height of this view.
computeVerticalScrollRange()
,
computeVerticalScrollOffset()
,
ScrollBarDrawable