Android-SVProgressHUD icon indicating copy to clipboard operation
Android-SVProgressHUD copied to clipboard

Cannot change attributes such as color of SVProgressHUD

Open ramonsgds opened this issue 7 years ago • 0 comments

I am trying to subclass SVProgressHUD and change its colors.

Please see my code (In Kotlin):

class RProgressHUD(context: Context) : SVProgressHUD(context){ init { progressBar.circleProgressColor = ContextCompat.getColor(context, R.color.colorAccent) progressBar.circleColor = ContextCompat.getColor(context, R.color.redEmpty) progressBar.roundWidth = 2.0f } }

I then declare it in my Activity as follow:

var progressHUD : RProgressHUD? = null

and initialize it on onCreate(savedInstanceState: Bundle?):

progressHUD = RProgressHUD(this)

Even then, nothing happens regarding the appearance of the SVProgressHUD. What now?

ramonsgds avatar Aug 07 '18 19:08 ramonsgds