2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage

How to change progressbar color in android

I need to change the default color of progress bar to my own color. How to do this programmatically?

userimage

To change progress bar color programmatically try below code:

progressBar.getProgressDrawable()
   .setColorFilter(Color.parseColor("#000000"),android.graphics.PorterDuff.Mode.MULTIPLY);
Answer is