Home | History | Annotate | Download | only in target

Lines Matching refs:resource

5 import com.bumptech.glide.load.resource.drawable.GlideDrawable;
15 private GlideDrawable resource;
19 * {@link com.bumptech.glide.load.resource.drawable.GlideDrawable} in an {@link android.widget.ImageView}.
29 * {@link com.bumptech.glide.load.resource.drawable.GlideDrawable} in an {@link android.widget.ImageView}.
32 * @param maxLoopCount A value to pass to to {@link com.bumptech.glide.load.resource.drawable.GlideDrawable}s
34 * {@link com.bumptech.glide.load.resource.drawable.GlideDrawable#setLoopCount(int)}.
47 * @param resource {@inheritDoc}
51 public void onResourceReady(GlideDrawable resource, GlideAnimation<? super GlideDrawable> animation) {
52 if (!resource.isAnimated()) {
60 float drawableRatio = resource.getIntrinsicWidth() / (float) resource.getIntrinsicHeight();
63 resource = new SquaringDrawable(resource, view.getWidth());
66 super.onResourceReady(resource, animation);
67 this.resource = resource;
68 resource.setLoopCount(maxLoopCount);
69 resource.start();
76 * @param resource The {@link android.graphics.drawable.Drawable} to display in the view.
79 protected void setResource(GlideDrawable resource) {
80 view.setImageDrawable(resource);
85 if (resource != null) {
86 resource.start();
92 if (resource != null) {
93 resource.stop();