I'm trying to set the background tint of a button programmatically, not to a color resource as done here, but instead to a hex value. At the moment, I have converted a hex value into a ColorDrawable, but do not know how to use this to set the background tint with the .setBackgroundTintList() method of my button. Note that this is being done in a Fragment and the context is stored in a global variable called mContext.
ColorDrawable colorDrawable = new ColorDrawable(Color.parseColor("#FFFFFF"));