android-glide

How to rotate image using glide library? (Like in picasso)

*爱你&永不变心* 提交于 2019-12-10 13:29:19
问题 I am trying to rotate the image using glide library. Previously, was able to do with Picasso (due to an issue, I moved to glide). Now I am missing rotate functionality in glide. I tried using transformations but didn't work. // Code used public class MyTransformation extends BitmapTransformation { private float rotate = 0f; public MyTransformation(Context context, float rotate) { super(context); this.rotate = rotate; } @Override protected Bitmap transform(BitmapPool pool, Bitmap toTransform,

Zoom and Mask using Glide

半世苍凉 提交于 2019-12-10 13:16:43
问题 I'm just looking to see if anyone can point me in the right direction to learning how to accomplish this using Glide... We have a page with content. Content is displayed as a single image (think: image of magazine page) In easy reading mode, I want to center and zoom on the first block of text content and mask the rest When 'next' is clicked, I want to move to the next block of text content, recenter and rezoom When 'back' is clicked, I want to move to the previous block of text content,

Using Glide, how can I go over each frame of GifDrawable, as Bitmap?

瘦欲@ 提交于 2019-12-10 12:47:41
问题 Background In a live wallpaper, I have a Canvas instance that I wish to draw GIF/WEBP content into, which was loaded via Glide. The reason I wish to do it with Glide, is that it provides some advantages over a solution I've found in the past for the same thing (here , repository here) : Usage of Movie restricts me to just GIF. With Glide I could also support WEBP animation Usage of Movie seems inefficient as it doesn't tell me the time to wait between frames, so I have to choose FPS that I

image are not getting loaded using firebaseRecyclerAdapter

假装没事ソ 提交于 2019-12-10 11:59:16
问题 everything is working fine but images are not getting loaded this image from emulator this image display the value log of image-getimgUrl this image frome firebase database the problem her is the value of image and getimgUrl = NULL public class MainScreen extends AppCompatActivity { RecyclerView recyclerView; DatabaseReference mRef; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main_screen); recyclerView =

How to load URL image in android wear?

一世执手 提交于 2019-12-10 01:57:08
问题 Right now I am using Glide-library to load the image in Android Wear. It doesn't load the image in most of the times. However, it loads image sometimes. Don't know what going wrong in my code. Note Wear is connected to the device via Bluetooth and I successfully get JSON response of Webservice in Android Wear via Broadcast Receiver from mobile. All data are displayed properly in wear except the images. Glide.with(mContext) .load("http://www.hanamoflorist.ca/images/uploads

Save image once Glide has loaded it

[亡魂溺海] 提交于 2019-12-09 07:20:20
问题 I load images using Glide like such: Glide.with(getContext()).load(apdInfo.url) .thumbnail(0.5f) .crossFade() .diskCacheStrategy(DiskCacheStrategy.ALL) .into(apd_image); And wish to save the Bitmap loaded like such: private void saveImage() { final ImageView apd_image = (ImageView) view.findViewById(R.id.apd_image); final InternalFileHandler IFH = new InternalFileHandler(getContext()); apd_image.setDrawingCacheEnabled(true); apd_image.buildDrawingCache(true); Bitmap bitmap = apd_image

Using RequestOptions in AppGlideModule with Glide 4

六眼飞鱼酱① 提交于 2019-12-08 19:49:49
问题 I used the `Glide library with AppGlideModule, version of library 4.1.1. Here is my glide module class: @GlideModule public class GlideUtil extends AppGlideModule { private final int IMAGE_CACHE_SIZE = 20 * 1024 * 1024; // 20 MB private final String IMAGE_FOLDER = "/User/Images"; @Override public void applyOptions(Context context, GlideBuilder builder) { RequestOptions requestOptions = new RequestOptions(); requestOptions.format(DecodeFormat.PREFER_ARGB_8888); requestOptions.diskCacheStrategy

Trying to build Android project with Glide package, throws “Unable to merge dex” error

心不动则不痛 提交于 2019-12-08 16:23:11
问题 I am running Android Studio 3.0. I am currently trying to make Glide version 4.3.0 work, but had the same issues with version 4.2.0. My project runs fine without adding the Glide package dependencies in my build.gradle file, downloaded from here https://github.com/bumptech/glide. I also followed the setup instructions here too. First I added the jar file to my libs folder, and then added the dependencies. The full error is Error:Execution failed for task ':app

com.bumptech.glide.Registry$NoModelLoaderAvailableException: Failed to find any ModelLoaders

柔情痞子 提交于 2019-12-08 15:53:27
问题 I am trying to load a custom model into Glide but getting this error: GlideExecutor: Request threw uncaught throwable com.bumptech.glide.Registry$NoModelLoaderAvailableException: Failed to find any ModelLoaders for model: com.company.project.glide.Movie@aac331a Glide Version : 4.0.0 My codes: Model public class Movie { private String name; private String artist; public Movie(String name, String artist) { this.name = name; this.artist = artist; } public String getName() { return name; } public

Image size too small when loading SVG with Glide

我们两清 提交于 2019-12-08 11:14:39
问题 I'm using Glide to load images. On my app I'm using the following sample to load a SVG image into my ImageView that is inside a CardView . GenericRequestBuilder<Uri, InputStream, SVG, PictureDrawable> requestBuilder; requestBuilder = Glide.with(mContext) .using(Glide.buildStreamModelLoader(Uri.class, mContext), InputStream.class) .from(Uri.class) .as(SVG.class) .transcode(new SvgDrawableTranscoder(), PictureDrawable.class) .sourceEncoder(new StreamEncoder()) .cacheDecoder(new