-
public interface ScrollingView
An interface that can be implemented by Views to provide scroll related APIs.
-
-
Method Summary
Modifier and Type Method Description abstract int
computeHorizontalScrollRange()
Compute the horizontal range that the horizontal scrollbarrepresents. abstract int
computeHorizontalScrollOffset()
Compute the horizontal offset of the horizontal scrollbar's thumbwithin the horizontal range. abstract int
computeHorizontalScrollExtent()
Compute the horizontal extent of the horizontal scrollbar's thumbwithin the horizontal range. abstract int
computeVerticalScrollRange()
Compute the vertical range that the vertical scrollbar represents. abstract int
computeVerticalScrollOffset()
Compute the vertical offset of the vertical scrollbar's thumbwithin the horizontal range. abstract int
computeVerticalScrollExtent()
Compute the vertical extent of the vertical scrollbar's thumbwithin the vertical range. -
-
Method Detail
-
computeHorizontalScrollRange
abstract int computeHorizontalScrollRange()
Compute the horizontal range that the horizontal scrollbarrepresents.
The range is expressed in arbitrary units that must be the same as theunits used by computeHorizontalScrollExtent and computeHorizontalScrollOffset.
The default range is the drawing width of this view.
-
computeHorizontalScrollOffset
abstract int computeHorizontalScrollOffset()
Compute the horizontal offset of the horizontal scrollbar's thumbwithin the horizontal range. This value is used to compute the positionof the thumb within the scrollbar's track.
The range is expressed in arbitrary units that must be the same as theunits used by computeHorizontalScrollRange and computeHorizontalScrollExtent.
The default offset is the scroll offset of this view.
-
computeHorizontalScrollExtent
abstract int computeHorizontalScrollExtent()
Compute the horizontal extent of the horizontal scrollbar's thumbwithin the horizontal range. This value is used to compute the lengthof the thumb within the scrollbar's track.
The range is expressed in arbitrary units that must be the same as theunits used by computeHorizontalScrollRange and computeHorizontalScrollOffset.
The default extent is the drawing width of this view.
-
computeVerticalScrollRange
abstract int computeVerticalScrollRange()
Compute the vertical range that the vertical scrollbar represents.
The range is expressed in arbitrary units that must be the same as theunits used by computeVerticalScrollExtent and computeVerticalScrollOffset.
-
computeVerticalScrollOffset
abstract int computeVerticalScrollOffset()
Compute the vertical offset of the vertical scrollbar's thumbwithin the horizontal range. This value is used to compute the positionof the thumb within the scrollbar's track.
The range is expressed in arbitrary units that must be the same as theunits used by computeVerticalScrollRange and computeVerticalScrollExtent.
The default offset is the scroll offset of this view.
-
computeVerticalScrollExtent
abstract int computeVerticalScrollExtent()
Compute the vertical extent of the vertical scrollbar's thumbwithin the vertical range. This value is used to compute the lengthof the thumb within the scrollbar's track.
The range is expressed in arbitrary units that must be the same as theunits used by computeVerticalScrollRange and computeVerticalScrollOffset.
The default extent is the drawing height of this view.
-
-
-
-