当前位置:网站首页>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 );边栏推荐
- 剑指Offer05. 替换空格
- I'm too lazy to write more than one character
- wpa_ cli
- Airflow installation jump pit
- [ManageEngine] the role of IP address scanning
- TOGAF认证自学宝典V2.0
- Bert running error: attributeerror: module'tensorflow contrib. tpu' has no attribute 'InputPipelineConfig'
- Adult adult adult
- Exploration of sqoop1.4.4 native incremental import feature
- 【ManageEngine】IP地址扫描的作用
猜你喜欢

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

GaN图腾柱无桥 Boost PFC(单相)七-PFC占空比前馈

【综合题】【数据库原理】

(最新版) Wifi分销多开版+安装框架

剑指Offer03. 数组中重复的数字【简单】

Sword finger offer06 Print linked list from end to end

Take you to the installation and simple use tutorial of the deveco studio compiler of harmonyos to create and run Hello world?

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

Eureka自我保护

What is more elegant for flutter to log out and confirm again?
随机推荐
如何在微信小程序中获取用户位置?
ncnn神经网络计算框架在香橙派OrangePi 3 LTS开发板中的使用介绍
The difference between lambda and anonymous inner class
elastic_ L02_ install
Pytext training times error: typeerror:__ init__ () got an unexpected keyword argument 'serialized_ options'
Oh my Zsh + TMUX installation
(最新版) Wifi分销多开版+安装框架
How to convert a decimal number to binary in swift
Xctf mobile--app2 problem solving
Dix règles de travail
The best shortcut is no shortcut
wpa_ cli
Kubectl_ Command experience set
Apache Mina开发手册
【ArcGIS自定义脚本工具】矢量文件生成扩大矩形面要素
Use bloc to build a page instance of shutter
idea将web项目打包成war包并部署到服务器上运行
2021 autumn Information Security Experiment 1 (password and hiding technology)
2.9 overview of databinding knowledge points
What is more elegant for flutter to log out and confirm again?