当前位置:网站首页>Glide 4.6.1 API initial
Glide 4.6.1 API initial
2022-07-03 12:44:00 【liuhaha1015】
Basic use :
Glide.with(contact).load(path).into(imagview);
other api:
RequestOptions options = new RequestOptions();
options.placeholder(R.mipmap.info_2);// Specify the bitmap
options.error(R.mipmap.ic_launcher);// Specify error diagram
options.override(50,50);// Specify the width and height of the picture , Image quality will be compressed ( It's just blurred , There is no change in size ??)
options.centerCrop();// take ImageView Width and height But the narrowest one is full , Then intercept the middle display
Glide.with(contact).load(path).apply(options).into(imagview);Add animation :
Glide.with(contact).load(path).transition(GenericTransitionOptions.with(R.anim.dg_scale_in)).into(imagview);3.0 When is :
Glide
.with( context )
.load( url )
.animate( android.R.anim.slide_in_left )
.into( imageView );边栏推荐
- [ManageEngine] the role of IP address scanning
- 基于同步坐标变换的谐波电流检测
- flinksql是可以直接客户端建表读mysql或是kafka数据,但是怎么让它自动流转计算起来呢?
- 2.8 overview of ViewModel knowledge
- Togaf certification self-study classic v2.0
- Flinksql can directly create tables and read MySQL or Kafka data on the client side, but how can it automatically flow and calculate?
- Day 1 of kotlin learning: simple built-in types of kotlin
- 111. Minimum depth of binary tree
- Xctf mobile--app2 problem solving
- Public and private account sending prompt information (user microservice -- message microservice)
猜你喜欢

ncnn神經網絡計算框架在香柳丁派OrangePi 3 LTS開發板中的使用介紹

最新版抽奖盲盒运营版

Sword finger offer09 Implementing queues with two stacks

Eureka自我保护

LeetCode 0556. Next bigger element III - end of step 4

idea将web项目打包成war包并部署到服务器上运行

剑指Offer07. 重建二叉树

Wechat applet pages always report errors when sending values to the background. It turned out to be this pit!

Display time with message interval of more than 1 minute in wechat applet discussion area

Application of ncnn Neural Network Computing Framework in Orange Pi 3 Lts Development Board
随机推荐
剑指Offer04. 二维数组中的查找【中等】
Xctf mobile--app2 problem solving
Use bloc to build a page instance of shutter
01_ Using the concurrent tool class library, is thread safety safe
Sword finger offer06 Print linked list from end to end
十条职场规则
Approve iPad, which wants to use your icloud account
Pytext training times error: typeerror:__ init__ () got an unexpected keyword argument 'serialized_ options'
How to convert a decimal number to binary in swift
Xctf mobile--app1 problem solving
02_ Lock the code, and don't let the "lock" become a worry
Do you feel like you've learned something and forgotten it?
2020-09_ Shell Programming Notes
电压环对 PFC 系统性能影响分析
阿里大于发送短信(用户微服务--消息微服务)
2020-11_ Technical experience set
Use of atomicinteger
ncnn神经网络计算框架在香橙派OrangePi 3 LTS开发板中的使用介绍
RedHat5 安装Socket5代理服务器
Swift5.7 扩展 some 到泛型参数