Lines Matching defs:scrollBar
928 * The scrollbar style to display the scrollbars inside the content area,
935 * The scrollbar style to display the scrollbars inside the padded area,
942 * The scrollbar style to display the scrollbars at the edge of the view,
949 * The scrollbar style to display the scrollbars at the edge of the view,
956 * Mask to check if the scrollbar style is overlay or inset.
962 * Mask to check if the scrollbar style is inside or outside.
968 * Mask for scrollbar style.
2876 * Cache the paddingRight set by the user to append to the scrollbar's size.
2884 * Cache the paddingBottom set by the user to append to the scrollbar's size.
2892 * Cache the paddingLeft set by the user to append to the scrollbar's size.
2900 * Cache the paddingStart set by the user to append to the scrollbar's size.
2907 * Cache the paddingEnd set by the user to append to the scrollbar's size.
3920 * Returns the width of the vertical scrollbar.
3922 * @return The width in pixels of the vertical scrollbar or 0 if there
3923 * is no vertical scrollbar.
3928 ScrollBarDrawable scrollBar = cache.scrollBar;
3929 if (scrollBar != null) {
3930 int size = scrollBar.getSize(true);
3942 * Returns the height of the horizontal scrollbar.
3944 * @return The height in pixels of the horizontal scrollbar or 0 if
3945 * there is no horizontal scrollbar.
3950 ScrollBarDrawable scrollBar = cache.scrollBar;
3951 if (scrollBar != null) {
3952 int size = scrollBar.getSize(false);
3979 if (scrollabilityCache.scrollBar == null) {
3980 scrollabilityCache.scrollBar = new ScrollBarDrawable();
4004 scrollabilityCache.scrollBar.setHorizontalTrackDrawable(track);
4008 scrollabilityCache.scrollBar.setHorizontalThumbDrawable(thumb);
4014 scrollabilityCache.scrollBar.setAlwaysDrawHorizontalTrack(true);
4018 scrollabilityCache.scrollBar.setVerticalTrackDrawable(track);
4022 scrollabilityCache.scrollBar.setVerticalThumbDrawable(thumb);
4028 scrollabilityCache.scrollBar.setAlwaysDrawVerticalTrack(true);
4040 // Re-apply user/background padding so that scrollbar(s) get added
10358 if (scrollCache.scrollBar == null) {
10359 scrollCache.scrollBar = new ScrollBarDrawable();
11125 * <p>Indicate whether the horizontal scrollbar should be drawn or not. The
11126 * scrollbar is not drawn by default.</p>
11128 * @return true if the horizontal scrollbar should be painted, false
11138 * <p>Define whether the horizontal scrollbar should be drawn or not. The
11139 * scrollbar is not drawn by default.</p>
11141 * @param horizontalScrollBarEnabled true if the horizontal scrollbar should
11155 * <p>Indicate whether the vertical scrollbar should be drawn or not. The
11156 * scrollbar is not drawn by default.</p>
11158 * @return true if the vertical scrollbar should be painted, false
11168 * <p>Define whether the vertical scrollbar should be drawn or not. The
11169 * scrollbar is not drawn by default.</p>
11171 * @param verticalScrollBarEnabled true if the vertical scrollbar should
11213 * @return true if scrollbar fading is enabled
11247 * Returns the scrollbar fade duration.
11249 * @return the scrollbar fade duration
11259 * Define the scrollbar fade duration.
11261 * @param scrollBarFadeDuration - the scrollbar fade duration
11271 * Returns the scrollbar size.
11273 * @return the scrollbar size
11283 * Define the scrollbar size.
11285 * @param scrollBarSize - the scrollbar size
11321 * <p>Returns the current scrollbar style.</p>
11322 * @return the current scrollbar style
11341 * <p>Compute the horizontal range that the horizontal scrollbar
11351 * scrollbar
11362 * <p>Compute the horizontal offset of the horizontal scrollbar's thumb
11364 * of the thumb within the scrollbar's track.</p>
11372 * @return the horizontal offset of the scrollbar's thumb
11383 * <p>Compute the horizontal extent of the horizontal scrollbar's thumb
11385 * of the thumb within the scrollbar's track.</p>
11393 * @return the horizontal extent of the scrollbar's thumb
11404 * <p>Compute the vertical range that the vertical scrollbar represents.</p>
11410 * @return the total vertical range represented by the vertical scrollbar
11423 * <p>Compute the vertical offset of the vertical scrollbar's thumb
11425 * of the thumb within the scrollbar's track.</p>
11433 * @return the vertical offset of the scrollbar's thumb
11444 * <p>Compute the vertical extent of the horizontal scrollbar's thumb
11446 * of the thumb within the scrollbar's track.</p>
11454 * @return the vertical extent of the scrollbar's thumb
11499 * <p>Request the drawing of the horizontal and the vertical scrollbar. The
11532 cache.scrollBar.setAlpha(Math.round(values[0]));
11542 cache.scrollBar.setAlpha(255);
11558 final ScrollBarDrawable scrollBar = cache.scrollBar;
11570 int size = scrollBar.getSize(false);
11575 scrollBar.setParameters(computeHorizontalScrollRange(),
11584 onDrawHorizontalScrollBar(canvas, scrollBar, left, top, right, bottom);
11591 int size = scrollBar.getSize(true);
11596 scrollBar.setParameters(computeVerticalScrollRange(),
11616 onDrawVerticalScrollBar(canvas, scrollBar, left, top, right, bottom);
11626 * Override this if the vertical scrollbar needs to be hidden in a subclass, like when
11628 * @return whether to temporarily hide the vertical scrollbar
11636 * <p>Draw the horizontal scrollbar if
11639 * @param canvas the canvas on which to draw the scrollbar
11640 * @param scrollBar the scrollbar's drawable
11649 protected void onDrawHorizontalScrollBar(Canvas canvas, Drawable scrollBar,
11651 scrollBar.setBounds(l, t, r, b);
11652 scrollBar.draw(canvas);
11656 * <p>Draw the vertical scrollbar if {@link #isVerticalScrollBarEnabled()}
11659 * @param canvas the canvas on which to draw the scrollbar
11660 * @param scrollBar the scrollbar's drawable
11669 protected void onDrawVerticalScrollBar(Canvas canvas, Drawable scrollBar,
11671 scrollBar.setBounds(l, t, r, b);
11672 scrollBar.draw(canvas);
18359 public ScrollBarDrawable scrollBar;