我想创建一个新的CircleProgressDrawable并将其分配给Glide占位符,这样当图像加载时,用户可以看到加载动画
这个我试过了
val progressDrawable = CircularProgressDrawable(context).apply {
strokeWidth = 15f
setColorSchemeColors(R.color.standard_blur,
R.color.standard,
R.color.standard_light,
R.color.standard75)
start()
}
但是 setColorSchemeColors 不起作用,我的圆形可绘制看起来全黑,有人知道那里发生了什么吗?
尝试在主视图中放置一个带有加载进度的Dialog。 它更直观,人们不会那么困惑:)