Class GlideDrawableImageViewTarget

    • Constructor Detail

      • GlideDrawableImageViewTarget

        public GlideDrawableImageViewTarget(ImageView view)
        Constructor for an Target that can display an GlideDrawable in an android.widget.ImageView.
        Parameters:
        view - The view to display the drawable in.
      • GlideDrawableImageViewTarget

        public GlideDrawableImageViewTarget(ImageView view,
                                            int maxLoopCount)
        Constructor for an Target that can display an GlideDrawable in an android.widget.ImageView.
        Parameters:
        view - The view to display the drawable in.
        maxLoopCount - A value to pass to to GlideDrawables indicating how many times they should repeat their animation (if they have one). See GlideDrawable.setLoopCount(int).
    • Method Detail

      • setResource

        protected void setResource(GlideDrawable resource)
        Sets the drawable on the view using android.widget.ImageView#setImageDrawable(android.graphics.drawable.Drawable).
        Specified by:
        setResource in class  ImageViewTarget<GlideDrawable>
        Parameters:
        resource - The android.graphics.drawable.Drawable to display in the view.
      • onStart

        public void onStart()
        Description copied from class: BaseTarget
        Callback for when android.app.Fragment#onStart()} or android.app.Activity#onStart() is called.
      • onStop

        public void onStop()
        Description copied from class: BaseTarget
        Callback for when android.app.Fragment#onStop()} or android.app.Activity#onStop()} is called.