android-glide

Using Glide Library with a Fragment adapter

别说谁变了你拦得住时间么 提交于 2020-05-16 21:59:29
问题 I have an adapter class that is being used to populate the recyclerview item with cardviews. This RecyclerView is located under a fragment. Inside this adapter, I am trying to bind an image to a imageview which is under the cardview layout. I am trying to achieve that under the following method which is in the adapter class: public void onBindViewHolder(@NonNull ProductViewHolder holder, int position) { Product product = myProducts.get(position); holder.productTitle.setText(product

Unable to generate GlideApp & Glide Requests when using Realm Database in my project in Android

痞子三分冷 提交于 2020-05-15 06:08:49
问题 I was using Glide for images and it was working fine till now. But now when I integrate Realm database in my project it is giving error for generating GlideApp & GlideRequests classes. Main build.gradle buildscript { repositories { mavenCentral() google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.3.1' classpath 'io.realm:realm-gradle-plugin:5.8.0' } } allprojects { repositories { mavenCentral() google() jcenter() maven { url "https://raw.github.com/signalapp/maven

Unable to generate GlideApp & Glide Requests when using Realm Database in my project in Android

好久不见. 提交于 2020-05-15 06:08:32
问题 I was using Glide for images and it was working fine till now. But now when I integrate Realm database in my project it is giving error for generating GlideApp & GlideRequests classes. Main build.gradle buildscript { repositories { mavenCentral() google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.3.1' classpath 'io.realm:realm-gradle-plugin:5.8.0' } } allprojects { repositories { mavenCentral() google() jcenter() maven { url "https://raw.github.com/signalapp/maven

Glide: onError Callback

落爺英雄遲暮 提交于 2020-04-09 06:17:14
问题 I'm switching from Picasso to Glide. Everything works fine except I cannot find a method to get an error callback. I want to retrieve a Bitmap, pass it on and generate an Android Palette from it. Also, while an errorDrawable can be provided to a load call, it won't show up in onResourceReady when using a SimpleTarget . In Picasso I did it like this: target = new Target() { @Override public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom from) { //handle Bitmap, generate Palette etc. }

class com.bumptech.glide.load.engine.GlideException: Failed to load resource

一曲冷凌霜 提交于 2020-04-09 02:20:42
问题 I am trying to load an image into imageView through Glide. But the image is not loaded - I get an error. I'm using the following code GlideApp.with(context) .load(itemData.getThumbnailUri()) .placeholder(R.mipmap.koya_logo_white) .error(R.mipmap.ic_image_loading_error) .into(itemBinding.cover); Logs lide: Load failed for https://s3.amazonaws.com/koya-dev-videos/kindness/8da807aa-1e1e-413d-bf9b-5bb084646593/medialibrary/9456621508/videos/1eb78337-d569-41bd-95ad-153d9098de03.png with size

class com.bumptech.glide.load.engine.GlideException: Failed to load resource

二次信任 提交于 2020-04-09 02:00:05
问题 I am trying to load an image into imageView through Glide. But the image is not loaded - I get an error. I'm using the following code GlideApp.with(context) .load(itemData.getThumbnailUri()) .placeholder(R.mipmap.koya_logo_white) .error(R.mipmap.ic_image_loading_error) .into(itemBinding.cover); Logs lide: Load failed for https://s3.amazonaws.com/koya-dev-videos/kindness/8da807aa-1e1e-413d-bf9b-5bb084646593/medialibrary/9456621508/videos/1eb78337-d569-41bd-95ad-153d9098de03.png with size

How can I remove white space from a photo? [closed]

懵懂的女人 提交于 2020-04-07 10:43:48
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 13 hours ago . I have the following situation, I am getting a message from the server, which, among other things, contains the URL of the photo. Then using Glide, I set this image to ImageView. And here the problem arises, because under the photo there is also TextView, and the photo has a

How to place a Firebase generated url into an ImageView with Glide? [duplicate]

℡╲_俬逩灬. 提交于 2020-04-01 02:46:34
问题 This question already has answers here : How to get URL from Firebase Storage getDownloadURL (10 answers) Closed 2 years ago . So when I upload an image onto Firebase Storage, the getDownloadUrl() method generates a string such as: com.google.android.gms.tasks.zzu@275cc4 Now I'm trying to place the image uploaded into an ImageView : ImageView img; img = v.findViewById(R.id.imgView); Glide.with(getApplicationContext()).load("com.google.android.gms.tasks.zzu@275cc4").into(img); This doesn't

Using Glide to load an image from remote storage

不想你离开。 提交于 2020-03-26 02:22:31
问题 I am developing an android app that needs to load many images from a folder that is located on my online server (in this case a GoDaddy hosting shared-plan). All of the images are stored in an image folder inside the FileManager folder provided by GoDaddy. Glide needs a URL to load an image, but in my case these images are not public and can't be reached from a HTTP URL (and should remain that way). I would like to use glide to load these remotely stored images just like I am able to do so

How to load and add images to an android arrayadapter using Glide

喜欢而已 提交于 2020-03-25 13:51:33
问题 I am trying to load an image using the Glide repository, then ultimately add that image into a gridview. I am currently trying to do this by creating a blank imageview, loading the image, adding the image to the imageview and then adding the imageview to my array adapter. The layout I am using with the arrayadapter contains a single imageview. Here is my code, layout, and error I am getting when I try to load the images final Query chatRoomMsgs = db.collection("chatrooms").document(chatRoomID