android-glide

Captcha image cannot be refresh by using Glide

不想你离开。 提交于 2019-11-30 17:08:11
问题 I have tried to use Glide to load an Captcha image into a ImageView. The first time loading is fine. However, when I reload the Captcha image into the same ImageView, the ImageView does not refresh to new image. Does anyone have idea how to solve this issue? String url = "https://captcha_path"; ImageView imgView = (ImageView)getActivity().findViewById(R.id.imgView); Glide.with(getActivity()).load(url).asBitmap().diskCacheStrategy(DiskCacheStrategy.NONE).into(imgView); 回答1: You can always use

How to load Image into ImageView from Url using Glide v4.0.0RC1

末鹿安然 提交于 2019-11-30 16:22:54
I just updated Glide library from v3 to v4 in my application. But Now I am not able to load image from the url. Previously it was working fine with v3. Here is my Glide code: Glide.with(context).load(galleryList.get(itemPosition).getImage()).thumbnail(Glide.with(context).load(R.drawable.balls)).apply(options).into(holder.kolamImage); What is the change in v4? I went through the document but still no help. If you are using Glide v4.0.0-RC1 then you need to use RequestOptions to add the placeholder, error image and other option. Here is an working example RequestOptions options = new

Android imageview shows greenish image

て烟熏妆下的殇ゞ 提交于 2019-11-30 14:19:13
This is the original image: This is the rendered image using ImageView: However, sometimes when the image is in a carousel, swiping back to the image may cause the image to render correctly, which is even more weird... This behavior is observed both on an LG G3 (Android 5.1) and Genymotion (Android 4.4.4). I'm using the Glide library for loading images, using the ARGB_8888 decode format: new GlideBuilder(this).setDecodeFormat(DecodeFormat.PREFER_ARGB_8888); This is a resolved issue 305 . Here is a quick recap: This issue appears only with images with JPEG format (the quality is irrelevant). It

Use glide to load bitmap to ImageView

╄→尐↘猪︶ㄣ 提交于 2019-11-30 13:36:50
I would like to use Glide to load bitmap to ImageView after cropping and re-sizing a bitmap. I don't want to use ImageView.setImageBitmap(bitmap); because I am loading lots of images and it might be taking up some memory, although the images are small in size, I just need to use Glide because I know it optimises image caching. I read this post, but I didn't quite understand his solution when I tried implementing it. So maybe someone has a cleaner and more easily understandable solution. This is my code which picks up an image and creates a bitmap out of it. I need to use glide instead of

I can only get part of a url (link) and put into string in android?

荒凉一梦 提交于 2019-11-30 10:01:53
问题 [Solved] - I need to resolve the problem below Ok I wasn't really sure how to word this question, but basically what I want to do is, I got a url from a RSS feed in android, and I need to put part of that url into a string, the url will look something like this: http://www.prsn.uprm.edu/Spanish/Informe_Sismo/myinfoGeneral.php?id=20161206012821' and I only want the part after id= ONLY THE ID NUMBER ,Then I need the id to put it in the following url: http://shake.uprm.edu/~shake/archive/shake/*

Why do my images shrink after loading with glide library

六月ゝ 毕业季﹏ 提交于 2019-11-30 08:22:33
问题 Hi I'm populating a gridview with glide image loader library when they first get called into my fragment they look like this But after scrolling up and down they are resized and look like this Is this something I'm doing with my gridview, the glide library, or is it something else like my placeholder image? on the second screenshot If I press on an image it lights up to show it is in actual fact filling that whole space, anyone know what I'm doing wrong here? I've tried changing the call in

glide image loading timeout increase

拥有回忆 提交于 2019-11-30 07:00:12
I am using glide to load images from URL. While I am fetching the images I am showing a loader in the image view. Some of the images being fetched are larger and therefore in slow internet connection timeout occurs and throws exception How can I increase the timeout? After searching a lot finally got an answer, if you are using volley: public class CustomGlide implements GlideModule { @Override public void applyOptions(Context context, GlideBuilder builder) { } @Override public void registerComponents(Context context, Glide glide) { RequestQueue queue = new RequestQueue( // params hardcoded

Using Glide for Android, how do I load images from asset and resources?

旧街凉风 提交于 2019-11-30 06:42:36
问题 I want to keep all the transformation, stoke and animations identical and was thinking if we can pass resource ID or asset name in Glide to load it locally? 回答1: For resource ids, you can use: Glide.with(fragment) .load(R.drawable.resource_id) .into(imageView); For assets, you can construct an asset uri: Glide.with(fragment) .load(Uri.parse("file:///android_asset/<assetName>")) .into(imageView); 回答2: Glide.with(context).load(uri).asBitmap().placeholder(R.drawable.yourimage).error(R.drawable

IllegalArgumentException: Unmanaged descriptor using gms.maps.model.Marker.setIcon

拥有回忆 提交于 2019-11-30 06:39:47
问题 I have an app that use android-maps-utils and glide for marker icons. I got an error report using Firebase crash reporting which I can't track in source code because gms.maps.model.Marker.setIcon is private, so I'm asking for some help with this problem. The follow part of the question is divided into: What the user was doing What firebase crash reported to me Some project configs What I tried/found trying to understand/fix it What the user was doing He was zooming in and out in a map (

RecyclerView Recycled ViewHolder Image View wrong size

纵饮孤独 提交于 2019-11-30 04:55:19
问题 I have a recycler view with different View Holders. A couple of view holders have image views which I pass into Glide to display images. The problem is, when the recycler view starts recycling views, the imageview width/height are that of the recycled view they then display the image incorrectly. Here is my ImageView: <ImageView android:id="@+id/image" android:layout_marginTop="@dimen/feed_item_margin" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout