android-glide

Find and load cached Image in Glide

六眼飞鱼酱① 提交于 2019-12-12 10:47:11
问题 I am new in glide and want to migrate my app from universalimageloader to glide. I want to convert cached image from the disk into image file, and show it into an ImageView. When I use universalimageloader, I can do it easily with this way: File imageFile = DiskCacheUtils.findInCache(image_url, ImageLoader.getInstance().getDiscCache()); //then show it into image view String file_target = "file://"+imageFile.getPath(); ImageLoader.getInstance().displayImage(target, imageView); However I have

Glide V4 load https images

萝らか妹 提交于 2019-12-12 09:44:05
问题 I know this link, and tried but this is for Glide V3 solution, I need to load https://myimage/image/xxx.png but glide throw exception FileNotFoundException(No content provider)** and **SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found I am using 4.5.0 Glide version, I have spend a lot of time but can't find any solution, any help will be appreciated. 回答1: I am struggling near about 1 day but find solution, if you are using ssl

load image from php directly into Glide

 ̄綄美尐妖づ 提交于 2019-12-12 09:27:44
问题 I have images as byte [] and I will load it directly into Glide some thing like this : the Glide in recyclerView (Adapter): Glide.with(ctx) .load("http://192.168.1.8/connect/getimage.php") .into(holder.img); The script PHP ==> getimage.php $sql = "select img from table where id=1032 "; $stmt = sqlsrv_prepare($this - > connection, $sql); $result = sqlsrv_execute($stmt); $information = array(); while ($data = sqlsrv_fetch_array($stmt)) { $img = base64_encode($data['img']); } echo $img; I would

Does Glide queue up every image request? Recyclerview loads are very slow when scrolling

假如想象 提交于 2019-12-12 07:54:55
问题 I have been seeing very long load times for images in our app using Glide 3.6 + a RecyclerView using a GridLayoutManager. The images are all around 20kb-40kb. It seems that glide queues up all the requests which causes the images to take quite awhile to load once you start scrolling further down the list. I've attached the logs from the GenericRequest class. V/GenericRequest﹕ finished setup for calling load in 0.170291 this: 249721749 V/GenericRequest﹕ finished onSizeReady in 0

Loading images by Glide spoil image quality

强颜欢笑 提交于 2019-12-12 05:58:55
问题 I build simple gallery. I load my photos using Glide. It looks like on images loaded by glide is some kind of streak (pixels seems to be visible). I tried to load photo with changed Format RGB_565/ARGB_8888 and I used .dontTransform() but still it looks worse than original photo. Code I use to load : ImageView photoDetails; photoDetails = (ImageView)findViewById(R.id.imageDetails); Glide.with(this) .load(pictureFile) //path to picture .asBitmap() .format(DecodeFormat.PREFER_ARGB_8888)

How to load image by image using Glide Library?

橙三吉。 提交于 2019-12-12 04:57:31
问题 I have an application contains a range of image appears by links using glide library, my app takes a long time to load all images so is it possible to load image by image ( one by one ). Glide.with(context) .load(imageId.get(position)) .diskCacheStrategy(DiskCacheStrategy.ALL) .priority(Priority.HIGH) .listener(new RequestListener<String, GlideDrawable>() { @Override public boolean onException(Exception e, String model, Target<GlideDrawable> target, boolean isFirstResource) { return false; }

Version Issue in glide library to upload an Image Android

北慕城南 提交于 2019-12-12 04:26:12
问题 I have uploaded an image using glide library it's working fine under version below lollypop but it seems that mobile above that version doesn't upload an image because as soon as I upload an image the default image just vanish and replaced with nothing just blank My default image So as after uploading anything from anywhere it just gives blank nothing and in my other mobile whose version is KitKat working absolutely fine This is glide library version I am using : compile 'com.github.bumptech

Glide with Fragment Context

我的未来我决定 提交于 2019-12-12 03:48:19
问题 This is related to Glide image loading with application context I have several Fragments hosted in an Activity, with a Fragment being replaced by another as the user navigates through the app. I'm passing a RequestManager into my MyFragment's RecyclerView adapter like so: @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ... MyAdapter adapter = new MyAdapter(Glide.with(this), listOfPhotos); recyclerView.setAdapter(adapter); ... } My

RecylerView changing single parameter in a row?

雨燕双飞 提交于 2019-12-12 03:36:52
问题 I have RecyclerView, single row includes text, image. After loading data, in a button click i want to change text without reloading image of the row. I tried using notifyItemChanged(position). But it makes image reloading.. Am using glide for loading images, so when i use notifyItemChanged(position), row flickering occurs 回答1: Whole row will be reloaded once you call notifyItemChanged() Two options: 1) Disable default recyclerview item animation ItemAnimator animator = recyclerView

Glide loads images from firebase painfully slow using URLs

微笑、不失礼 提交于 2019-12-12 01:28:54
问题 I'm trying to create a RecyclerView that is populated by ImageViews in each cell and each image corresponds to an image in Firebase Storage. I have a list of Strings that is passed into my RecyclerView adapter and each one represents a URL to an image in Firebase Storage. I load each image inside the onBindViewHolder() . What i get in return is a very VERY slow loading of a few images (around 5-see picture) and then it takes around 4 minutes to load another 5 and it never seems to load any