IT. Expert System.

Android Reference

ScrollBarDrawable


android.widget

Class ScrollBarDrawable



  • public class ScrollBarDrawable
    extends Drawable
    This is only used by View for displaying its scroll bars. It should probably be moved in to the view package since it is used in that lower-level layer. For now, we'll hide it so it can be cleaned up later.
    • Constructor Detail

      • ScrollBarDrawable

        public ScrollBarDrawable()
    • Method Detail

      • setAlwaysDrawHorizontalTrack

        public void setAlwaysDrawHorizontalTrack(boolean alwaysDrawTrack)
        Indicate whether the horizontal scrollbar track should always be drawn regardless of the extent. Defaults to false.
        Parameters:
        alwaysDrawTrack - Set to true if the track should always be drawn
      • setAlwaysDrawVerticalTrack

        public void setAlwaysDrawVerticalTrack(boolean alwaysDrawTrack)
        Indicate whether the vertical scrollbar track should always be drawn regardless of the extent. Defaults to false.
        Parameters:
        alwaysDrawTrack - Set to true if the track should always be drawn
      • getAlwaysDrawVerticalTrack

        public boolean getAlwaysDrawVerticalTrack()
        Indicates whether the vertical scrollbar track should always be drawn regardless of the extent.
      • getAlwaysDrawHorizontalTrack

        public boolean getAlwaysDrawHorizontalTrack()
        Indicates whether the horizontal scrollbar track should always be drawn regardless of the extent.
      • setParameters

        public void setParameters(int range,
                         int offset,
                         int extent,
                         boolean vertical)
      • draw

        public void draw(Canvas canvas)
        Description copied from class: Drawable
        Draw in its bounds (set via setBounds) respecting optional effects such as alpha (set via setAlpha) and color filter (set via setColorFilter).
        Specified by:
        draw in class Drawable
        Parameters:
        canvas - The canvas to draw into
      • onBoundsChange

        protected void onBoundsChange(Rect bounds)
        Description copied from class: Drawable
        Override this in your subclass to change appearance if you recognize the specified state.
        Overrides:
        onBoundsChange in class Drawable
      • drawTrack

        protected void drawTrack(Canvas canvas,
                     Rect bounds,
                     boolean vertical)
      • drawThumb

        protected void drawThumb(Canvas canvas,
                     Rect bounds,
                     int offset,
                     int length,
                     boolean vertical)
      • setVerticalThumbDrawable

        public void setVerticalThumbDrawable(Drawable thumb)
      • setVerticalTrackDrawable

        public void setVerticalTrackDrawable(Drawable track)
      • setHorizontalThumbDrawable

        public void setHorizontalThumbDrawable(Drawable thumb)
      • setHorizontalTrackDrawable

        public void setHorizontalTrackDrawable(Drawable track)
      • getSize

        public int getSize(boolean vertical)
      • setAlpha

        public void setAlpha(int alpha)
        Description copied from class: Drawable
        Specify an alpha value for the drawable. 0 means fully transparent, and 255 means fully opaque.
        Specified by:
        setAlpha in class Drawable
      • setColorFilter

        public void setColorFilter(ColorFilter cf)
        Description copied from class: Drawable
        Specify an optional colorFilter for the drawable. Pass null to remove any filters.
        Specified by:
        setColorFilter in class Drawable
      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 423 / 158776020. Delta: 0.05053 с