parent
5028f60325
commit
588fbd918a
@ -0,0 +1,14 @@
|
||||
package com.common.commonlib.image.config
|
||||
|
||||
import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions
|
||||
|
||||
/**
|
||||
* 转换配置
|
||||
*/
|
||||
class GlideTransitionConfig(time: Int?) {
|
||||
val transition: DrawableTransitionOptions = if (time != null) {
|
||||
DrawableTransitionOptions.withCrossFade(time)
|
||||
} else {
|
||||
DrawableTransitionOptions.withCrossFade()
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue