android-glide

Retrieving Image from Firebase Storage api

纵然是瞬间 提交于 2019-12-13 18:12:29
问题 I have made an app which is retrieving image from Firebase storage.Image is retrieved and displayed in the imageview but it is taking more than 2 minutes to retrieve image.I have followed tthe below link to retrieve image from Firebase storage which is using glide library also. https://github.com/firebase/FirebaseUI-Android/tree/master/storage Here is my code MainActivity.java package com.example.vikas.where_i_am; import android.media.Image; import android.support.v7.app.AppCompatActivity;

Glide does not accepting GifDrawable as target parameter

▼魔方 西西 提交于 2019-12-13 17:03:56
问题 I'm trying to find out end of gif with glide. this is the code that I find on web: Glide.with(thisActivity).asGif().load(R.raw.logo_gif_motion_low).listener(object : RequestListener<GifDrawable> { override fun onLoadFailed(p0: GlideException?, p1: Any?, p2: Target<GifDrawable>, p3: Boolean): Boolean { } override fun onResourceReady(p0: GifDrawable?, p1: Any?, p2: Target<GifDrawable>, p3: DataSource?, p4: Boolean): Boolean { return false } }).into(splashscreen); the problem is , it doesn't

Loading images using Glide in Imageview

て烟熏妆下的殇ゞ 提交于 2019-12-13 15:25:52
问题 I am using Glide library for loading images in imageview and using the below code. Glide.with(mActivity) .load(img.getmGridViewImageUrl()) .placeholder(R.color.grey_light) .into(imageHolder.imageView); The placeholder with grey color gets visible until the image does not load but after the image get loads in imageview, the placeholder still take place and show some blank space after that image. How can I resolve this issue. Please help me if you have any idea here. 回答1: Try this code. When I

How to specify the number of retries using Glide for Android for loading images?

自闭症网瘾萝莉.ら 提交于 2019-12-13 13:12:50
问题 I'm using the glide library for my Android app. I would like to tell it to retry getting the image X times ( maybe with exponential backoff! ), before giving up and showing the error placeholder image. Any idea how to do this? (I'm using the Volley integration btw). 回答1: Use your own ResourceDecoder. I'm loading local files only and handle the retry count in decode() . If you use another model just change to the appropriate interface. Example for Glide 4.0.0-SNAPSHOT. The custom

Glide - Cannot stop gif onClick- Getting TransitionDrawable instead of Animate/GifDrawable

帅比萌擦擦* 提交于 2019-12-13 07:12:59
问题 I am loading gif image in Imageview with container recyclerview. Currently the recyclerview has only 1 gif and other are bitmaps. I am loading gif as Glide.with(context). load("https://media.giphy.com/media/TcKmUDTdICRwY/giphy.gif"). asGif(). override(params.width, params.height). diskCacheStrategy(DiskCacheStrategy.RESULT). placeholder(R.drawable.placeholder). error(R.drawable.error). listener(new RequestListener<Uri, GifDrawable>() { @Override public boolean onException(Exception e, Uri

Glide.with(context).load(“file://”+bitmapList.get(position)) showing error?

元气小坏坏 提交于 2019-12-13 05:05:48
问题 I using below code Glide.with(context) .load("file://"+bitmapList.get(position)) .override(153,160) .crossFade() .centerCrop() .dontAnimate() .skipMemoryCache(true) .into(holder.thumbnail); problem is that here .override(153,160) this line showing compile error like cannot resolve method override(int,int) I got solution here: glide:4.3.1 override and placeholder features not work tried manyways it not working..please anyone help me when i change like this Glide.with(context) .load("file://"

How to use login:pass@ url in Glide on Android?

走远了吗. 提交于 2019-12-12 18:18:46
问题 Trying Glide library for Android. It is necessary to download pictures and display it in the ImageView. If this type url http: //www.some.domen / storage / images / image.jpg all normal loaded. But if you are denied access login and password so http: // USER: PASSWORD@www.some.domen/storage/images ... the picture is not loaded. What's wrong, how do I upload a picture using the username and password? Thank you! 回答1: Based on https://stackoverflow.com/a/5137446/253468 I think this could be a

How to download image from aws s3 into imageview?

ⅰ亾dé卋堺 提交于 2019-12-12 16:29:15
问题 so I want to be able to grab my images from my s3 bucket and (using glide or picasso) load that image into an imageview. (I don't want to download that image into my phone). currently i have this: downloadButton = (Button) findViewById(R.id.cognito_s3DownloadButton); downloadButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { File file = new File(Environment.getExternalStorageDirectory().toString() + "/" + "fromAWS"); observer = transferUtility

Glide Image cache with id not url

喜夏-厌秋 提交于 2019-12-12 15:27:13
问题 I am working in Android app that load images from Amazon S3. The Image URL randomly changes with token and expiry key. For that reason i can't cache the image Glide. There is any way to set Glide cache key as any static ID(like image id) not url. I attached my code snippet to load image from AWS Glide.with(remoteGalleryAct).load(photoFinalImageURL) .signature(new StringSignature(getImageUrl(photoFinalImageURL)))// remove AWS keys .error(defaultNoImageDrawable) .placeholder

Using Glide to load a Placeholder from URL to display while loading a GIF (Android)

末鹿安然 提交于 2019-12-12 10:55:10
问题 What I have is this: Glide .with(this) .load(imageUrl) .asGif() .diskCacheStrategy(DiskCacheStrategy.SOURCE) .placeholder(R.drawable.gif) .into(imageView); But instead, I want to use Glide to load the same gif asBitmap() to use as placeholder for while it's loading the actual gif. Like if I could do: .placeholder(Glide.with(this).load(imageUrl).asBitmap()) 回答1: You have to pass the URL in .thumbnail(url) as .thumbnail(Glide .with(context) .load(Url) .asBitmap() Or like this:-