Android Question Save background (ColorDrawable)

Douwe Siegersma

Member
Licensed User
Longtime User
Hello,

I want to save the properties of an object (stored in a list) in a file.
This goes well but when loading them again setting the background property gives an error.
Java expects a ColorDrawable but gets a string. Is there a way to convert the string to a ColorDrawable again?
 
Top