当前位置:网站首页>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 );边栏推荐
猜你喜欢

Sword finger offer07 Rebuild binary tree

Record your vulnhub breakthrough record

公纵号发送提示信息(用户微服务--消息微服务)

Xctf mobile--app1 problem solving

低代码平台国际化多语言(i18n)技术方案

剑指Offer09. 用两个栈实现队列
![[ArcGIS user defined script tool] vector file generates expanded rectangular face elements](/img/39/0b31290798077cb8c355fbd058e4d3.png)
[ArcGIS user defined script tool] vector file generates expanded rectangular face elements

阿里 & 蚂蚁自研 IDE

T430 toss and install OS majave 10.14

如何在微信小程序中获取用户位置?
随机推荐
Eureka self protection
2020-11_ Technical experience set
Lambda expression
Application of ncnn Neural Network Computing Framework in Orange Pi 3 Lts Development Board
Sword finger offer04 Search in two-dimensional array [medium]
Sword finger offer05 Replace spaces
Xctf mobile--app2 problem solving
Public and private account sending prompt information (user microservice -- message microservice)
Oh my Zsh + TMUX installation
init. RC service failed to start
Sword finger offer09 Implementing queues with two stacks
111. Minimum depth of binary tree
Enter the length of three sides of the triangle through the user, and calculate the area of the triangle, where the length is a real number
JVM memory model
Computer version wechat applet full screen display method, mobile phone horizontal screen method.
Node.js: express + MySQL的使用
剑指Offer10- I. 斐波那契数列
elastic_ L01_ summary
Flinksql can directly create tables and read MySQL or Kafka data on the client side, but how can it automatically flow and calculate?
Swift bit operation exercise