I need to create a simple Drawable object with needed color as background color, but I don’t know how I can do it programmatically without using a XML schema (is it possible really?). Please, tell me, I need it to do for making a LayerDrawable and working with SeekBar (changing background of SeekBar programmatically). Thank you in advance.
I need to create a simple Drawable object with needed color as background color,
Share
You should try using a ColorDrawable. It can be constructed with a color using the constructor
ColorDrawable(int color)