📜  进度指示器芯片 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:18.987000             🧑  作者: Mango

代码示例1
//use androidx.swiperefreshlayout.widget.CircularProgressDrawable

CircularProgressDrawable progressDrawable = new CircularProgressDrawable(context);
progressDrawable.setStyle(CircularProgressDrawable.DEFAULT); //DEFAULT or LARGE
progressDrawable.setColorFilter(BlendModeColorFilterCompat.createBlendModeColorFilterCompat(indicatorColor, BlendModeCompat.SCR_IN)); //set indicator color

chip.setChipIcon(progressDrawable); //set progress drawable on chip
progressDrawable.start(); //start animation