Answers for "progress indicator chip"

0

progress indicator chip

//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
Posted by: Guest on January-21-2021

Code answers related to "progress indicator chip"

Browse Popular Code Answers by Language