android-glide

Show Blur Image Using Glide library

China☆狼群 提交于 2019-12-11 23:22:52
问题 i'm trying to show blur image using Glide but instead showing error images.i have no idea why it is show error image. URL is working fine but still it is showing error image only here is my code Glide.with(context) .load("http://www.gadgetsaint.com/wp-content/uploads/2016/11/cropped-web_hi_res_512.png") .diskCacheStrategy(DiskCacheStrategy.NONE) .bitmapTransform(new BlurTransformation(context)) .error(R.drawable.error_image) .into(imageView); BlurTransformation Class: public class

Why my Glide doesn't cache the image ? it seems download image all over again

烂漫一生 提交于 2019-12-11 18:49:54
问题 I am trying to download image using the code below: Glide.with(recommendedEventViewHolder.itemView) .load(currentEvent.posterDownloadPath) .diskCacheStrategy( DiskCacheStrategy.AUTOMATIC ) .into(recommendedEventViewHolder.posterImageView) but the result is like this, in this video: https://drive.google.com/file/d/1ljGxwsi0wpaZbBY_CLmczdBzD9krz4QQ/view?usp=sharing when I scroll down to the bottom of recycler view, and then go back to the top, the first image disappear and it seems re download

Glide recyclerview loading duplicate image

一个人想着一个人 提交于 2019-12-11 18:40:53
问题 I have a recyclerview with diffutil . Already I using Glide to load images inside the ImageViews . on the onBindViewHolder I call my function it's called loadImage(holder.view,item) override fun onBindViewHolder(holder: ViewHolder, position: Int) { val item = getItem(position) onLoadImage(holder.view, item) } In my loadImage I load the image inside the view. private fun loadImage(view: View, item: MyItemModel) { Timber.i("load item's image id: ${item.id} image is: ${item.image}") Glide.with

android : How to place a scrollable photo into imageView?

隐身守侯 提交于 2019-12-11 18:21:32
问题 I'm now working on some project and actually what I want to do is I will give a user a circle and when he clicks it , he will be able to choose photo either from gallery or with his/her cam , I've actually draw my custom shape of the circle , and then place image into it using Glide-Transformation Library , but the problem is I can't scroll inside this circle to show some specific part of user's image . Any Solution will be helpful . My XML file looks like this : <?xml version="1.0" encoding=

com.bumptech.glide.load.HttpException: Forbidden

浪子不回头ぞ 提交于 2019-12-11 17:41:48
问题 I want to use glide to load a url picture GlideApp.with(this).load("https://files.yande.re/image/0f1c68aa6d34fb3a7a7af855e0036377/yande.re%20404988%20arsenixc%20landscape.jpg").error(R.mipmap.ic_launcher).into(photoView); but it catch error: class com.bumptech.glide.load.engine.GlideException: Failed to load resource 08-14 00:59:32.323 15273-15273/com.yaminet.yami I/Glide: Root cause (1 of 1) com.bumptech.glide.load.HttpException: Forbidden at com.bumptech.glide.load.data.HttpUrlFetcher

Strange error with GLIDE while loading image on production build

北城以北 提交于 2019-12-11 15:48:08
问题 After applying ProGuard on my production app. We are facing the following error on loading images from URLs E/vw: Glide failed to load image with exception: UNABLE TO LOAD PUBLICSUFFIXES.GZ RESOURCE FROM THE CLASSPATH. java.lang.IllegalStateException: Unable to load publicsuffixes.gz resource from the classpath. Finally, we tried keeping the whole Glide sources in the progaurd configuration with the following command -keep public class * implements com.bumptech.glide.module.GlideModule -keep

Stuttering Listview despite ViewHolder, LazyLoader and simple Layout

。_饼干妹妹 提交于 2019-12-11 11:08:21
问题 I have a listview that loads images from a server into an ImageView. The Listview implements the viewholder pattern and has a very simple relative-layout for the rows. For lazy image loading, I have tried universalimageloader, picasso and am currently using glide, which is based on google volley, which should be blazing fast. However: My listview still stutters while replacing the placeholder image with the servers image and I just cant figure out why, here is my adapter-code: @Override

add loading before the result show, i use glide for my image display

半世苍凉 提交于 2019-12-11 10:33:32
问题 please construct my code, i want a loading image while the result is not ready.. i use glide for this code.. imageView = (ImageView) rootView.findViewById(R.id.imageView); Glide.with(getActivity()).load("http://joehamirbalabadan.com/android/android/imghome/index1.png").diskCacheStrategy(DiskCacheStrategy.ALL).placeholder(R.drawable.indexloading).into(imageView); imageView3 = (ImageView) rootView.findViewById(R.id.imageView3); Glide.with(getActivity()).load("http://joehamirbalabadan.com

Recyclerview on item click set image to another imageview in activity

情到浓时终转凉″ 提交于 2019-12-11 08:35:55
问题 I'm working on Recyclerview, and I want to set an image to center imageview from Recyclerview's selected item Error : You must pass in a non null View here I'm trying to set an image to imageview located in activity_set_back.xml from Onclick method of Recyclerview's I have: moviesList(ArrayList) that hold all URL and I'm getting position on click only thing I need to do is set that image to img_back(Imageview) Shown in this code MoviesAdapter.class this is my adapter public class

Android: IllegalArgumentException: Failed to find configured root that contains /data/data/

谁说我不能喝 提交于 2019-12-11 07:36:34
问题 Just getting into the Glide image loading library for Android. Working with code from here: https://github.com/bumptech/glide/issues/459 Full project here: https://github.com/mhurwicz/glide02 I'm getting the following exception when I run the app in the emulator in Android Studio: java.lang.IllegalArgumentException: Failed to find configured root that contains /data/data/com.example.glide02/cache/image_manager_disk_cache/5a992029460eed14244e8b970d969d45518b2f7ac10f71eb26bd0aaf7c3bcf06.0 The