IT. Expert System.

Android Reference

AnimatedRotateDrawable


android.graphics.drawable

Class AnimatedRotateDrawable

    • Constructor Detail

      • AnimatedRotateDrawable

        public AnimatedRotateDrawable()
    • Method Detail

      • 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
      • start

        public void start()
        Description copied from interface: Animatable
        Starts the drawable's animation.
        Specified by:
        start in interface Animatable
      • stop

        public void stop()
        Description copied from interface: Animatable
        Stops the drawable's animation.
        Specified by:
        stop in interface Animatable
      • isRunning

        public boolean isRunning()
        Description copied from interface: Animatable
        Indicates whether the animation is running.
        Specified by:
        isRunning in interface Animatable
        Returns:
        True if the animation is running, false otherwise.
      • run

        public void run()
        Description copied from interface: Runnable
        Starts executing the active part of the class' code. This method is called when a thread is started that has been created with a class which implements Runnable.
        Specified by:
        run in interface Runnable
      • setVisible

        public boolean setVisible(boolean visible,
                         boolean restart)
        Description copied from class: Drawable
        Set whether this Drawable is visible. This generally does not impact the Drawable's behavior, but is a hint that can be used by some Drawables, for example, to decide whether run animations.
        Overrides:
        setVisible in class Drawable
        Parameters:
        visible - Set to true if visible, false if not.
        restart - You can supply true here to force the drawable to behave as if it has just become visible, even if it had last been set visible. Used for example to force animations to restart.
        Returns:
        boolean Returns true if the new visibility is different than its previous state.
      • getDrawable

        public Drawable getDrawable()
        Returns the drawable rotated by this RotateDrawable.
      • getChangingConfigurations

        public int getChangingConfigurations()
        Description copied from class: Drawable
        Return a mask of the configuration parameters for which this drawable may change, requiring that it be re-created. The default implementation returns whatever was provided through Drawable.setChangingConfigurations(int) or 0 by default. Subclasses may extend this to or in the changing configurations of any other drawables they hold.
        Overrides:
        getChangingConfigurations in class Drawable
        Returns:
        Returns a mask of the changing configuration parameters, as defined by Configuration.
        See Also:
        Configuration
      • 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
      • invalidateDrawable

        public void invalidateDrawable(Drawable who)
        Description copied from interface: Drawable.Callback
        Called when the drawable needs to be redrawn. A view at this point should invalidate itself (or at least the part of itself where the drawable appears).
        Specified by:
        invalidateDrawable in interface Drawable.Callback
        Parameters:
        who - The drawable that is requesting the update.
      • getPadding

        public boolean getPadding(Rect padding)
        Description copied from class: Drawable
        Return in padding the insets suggested by this Drawable for placing content inside the drawable's bounds. Positive values move toward the center of the Drawable (set Rect.inset). Returns true if this drawable actually has a padding, else false. When false is returned, the padding is always set to 0.
        Overrides:
        getPadding in class Drawable
      • isStateful

        public boolean isStateful()
        Description copied from class: Drawable
        Indicates whether this view will change its appearance based on state. Clients can use this to determine whether it is necessary to calculate their state and call setState.
        Overrides:
        isStateful in class Drawable
        Returns:
        True if this view changes its appearance based on state, false otherwise.
        See Also:
        Drawable.setState(int[])
      • 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
      • getIntrinsicWidth

        public int getIntrinsicWidth()
        Description copied from class: Drawable
        Return the intrinsic width of the underlying drawable object. Returns -1 if it has no intrinsic width, such as with a solid color.
        Overrides:
        getIntrinsicWidth in class Drawable
      • getIntrinsicHeight

        public int getIntrinsicHeight()
        Description copied from class: Drawable
        Return the intrinsic height of the underlying drawable object. Returns -1 if it has no intrinsic height, such as with a solid color.
        Overrides:
        getIntrinsicHeight in class Drawable
      • setFramesCount

        public void setFramesCount(int framesCount)
      • setFramesDuration

        public void setFramesDuration(int framesDuration)
      • mutate

        public Drawable mutate()
        Description copied from class: Drawable
        Make this drawable mutable. This operation cannot be reversed. A mutable drawable is guaranteed to not share its state with any other drawable. This is especially useful when you need to modify properties of drawables loaded from resources. By default, all drawables instances loaded from the same resource share a common state; if you modify the state of one instance, all the other instances will receive the same modification. Calling this method on a mutable Drawable will have no effect.
        Overrides:
        mutate in class Drawable
        Returns:
        This drawable.
        See Also:
        Drawable.ConstantState, Drawable.getConstantState()


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: 261 / 158852263. Delta: 0.05093 с