android-glide

Using Firebase Storage image with Glide

倖福魔咒の 提交于 2019-12-28 06:32:07
问题 There are tons of duplicated answers I had tried almost all of them but I am still not able to use Firebase storage image with Glide. First of all I am using docs FirebaseStorage storage = FirebaseStorage.getInstance(); StorageReference storageRef = storage.getReference(); StorageReference pathReference = storageRef.child("sorular/1.jpg"); // ImageView in your Activity ImageView imageView = rootView.findViewById(R.id.imageView); // Load the image using Glide Glide.with(this /* context */)

Progress bar while loading image using Glide

跟風遠走 提交于 2019-12-28 03:20:27
问题 Can I load a spinner in placeholder with rotating animation until the image is loaded using Glide? I am trying to do that using .placeholder(R.Drawable.spinner) no animation is coming up? It would be great if somebody could help me out? Thanks! 回答1: Edit: This is super simple now with the CircularProgressDrawable MyGlideModule.kt @GlideModule class MyGlideModule : AppGlideModule() MainActivity.kt override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState)

Android: Use Glide to load Facebook Photo URL

陌路散爱 提交于 2019-12-25 06:29:39
问题 I'm building an Android app in which I'm trying to let the user bring in photos from Facebook. After I grab the URLs from a GraphRequest, I'm trying to use Glide to load the image into an ImageButton but I keep getting the error D/skia: --- skImageDecoder::Factory returned null . Here's my code: GraphRequest request = GraphRequest.newMeRequest( AccessToken.getCurrentAccessToken(), new GraphRequest.GraphJSONObjectCallback() { @Override public void onCompleted(JSONObject object, GraphResponse

Android TransactionTooLargeException with NotificationManager

旧时模样 提交于 2019-12-24 22:16:40
问题 I am getting TransactionTooLargeException exception when sending a notification with a custom layout. java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 588636 bytes at android.app.NotificationManager.notifyAsUser(NotificationManager.java:380) at android.app.NotificationManager.notify(NotificationManager.java:286) at android.app.NotificationManager.notify(NotificationManager.java:270) It's probably because of the bitmaps in the layout, but it's not happening

Glide circular image gets cropped

家住魔仙堡 提交于 2019-12-24 17:28:31
问题 I'm trying to make a circular imageview using glide... I followed this tutorial How to round an image with Glide library? but my image always get the top and bottom cropped i tried to change imageview dimensions but nothing changes, always cropped and same ratio what am i doing wrong Glide.with(this).load(MasterFacade.getFacade().getLocalUser().getProfilePicUrl()).apply(RequestOptions.centerCropTransform()).into((ImageView) findViewById(R.id.profileImageView)); and the layout <ImageView

check image is loaded image(url) by glide

我的未来我决定 提交于 2019-12-24 12:21:49
问题 In my android app i have 4 url for one single image. to check if url 1 is broken then go to url 2 and the same way until the end. i using Glide 4.3.1 for loading image like this : private int checkAndShow4Image(Context context, View view, int img_id, String img_url) { try { GlideApp .with(context) .load(img_url) .diskCacheStrategy(DiskCacheStrategy.DATA) .error(R.drawable.ic_broken_image) .fallback(R.drawable.ic_broken_image) .transition(DrawableTransitionOptions.withCrossFade()) .into(

How to show gif on Glide

我的梦境 提交于 2019-12-24 10:19:32
问题 I want to show gif on Glide error() in recycler Adapter. how should I do that? I want to show a picture in Glide, and when the internet will be disconnected, I'll show a Gif, but Glide Gif will not show. here is my glide code that just shows loading_back.gif and didn't show connection_fail.gif . RequestOptions options = new RequestOptions() .centerCrop() .placeholder(R.drawable.static_place_holder) .error(R.drawable.connection_fail) .diskCacheStrategy(DiskCacheStrategy.ALL) .priority(Priority

Using Newer version of Glide Library(4.7.1) causing Binding error issue

倖福魔咒の 提交于 2019-12-24 07:39:12
问题 When I tried using a newer version of Glide Library gives me Binding Error in all the file. The moment I revert back to the older version, it works. The version I was using: **api 'com.github.bumptech.glide:glide:4.3.0'** Newer Version I updated: **dependencies { compile 'com.github.bumptech.glide:glide:4.7.1' }** Not sure about the cause of the issue. error: package com.xxx.xxx.databinding does not exist it is the same for all class org.gradle.api.tasks.TaskExecutionException: Execution

recyclerview not loading adapter values in a fragment

半城伤御伤魂 提交于 2019-12-24 05:53:45
问题 I have a base navigation drawer activity, which will load a fragment. The fragment. The fragment has a recycler view in its layout. The recycler view has an adapter which use Glide to load images from internet. I'm not able to get the image loaded. (Have added the Internet permission in manifest). My Base activity is: import android.net.Uri; import android.os.Bundle; import android.support.design.widget.NavigationView; import android.support.v4.app.Fragment; import android.support.v4.app

Why Glide is not loading https images in android?

岁酱吖の 提交于 2019-12-24 05:16:32
问题 I am trying to load https images in imageview using Glide. The image is not loading, but if I provide some local image (ex. R.drawable.error_image), it loads. imagePath = "https://s-media-cache-ak0.pinimg.com/736x/d3/6b/83/d36b83e986e500aa7f39c722970f1f97.jpg"; // Sample image took from internet Glide.with(this) .load(imagePath) .into(landingImage); compile 'com.github.bumptech.glide:glide:4.0.0-RC0' I tried to search in SOF also but did't get fix. Give suggestions thanks in advance. 回答1: Try