目录
1.ImageView介绍
2.展示方式
3.各种途径设置图片方式
4.动图
5.Glide包
一.介绍
静态图:imageview
动态图:implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.2'
各种加载: implementation 'com.github.bumptech.glide:glide:3.5.2'
二.展示方式
fitCenter(默认)
6GNOD[FK2WT2K]Z1S8G{78Y.png
center
we.png
fitXY
PG{L}}6H$VM%NSCL9Y~4G4E.png
centerCrop
wewewe.png
centerInside
wewe.png
fitStart
80W6V5MCORW)`O1KU090KKT.png
fitEnd
wewe.png
三.动图
<pl.droidsonroids.gif.GifImageView
android:layout_width="match_parent"
android:layout_height="0px"
android:src="@mipmap/gif"
android:layout_weight="1"/>