I have an EditText that takes the color of an xml.
I know that when you rotate the screen activity is destroyed, and I managed to retrieve some data (values, status button) using onSaveInstanceState () but I can not find how to retrieve the color of the edit text (can be green or red) and keep .
Is it possible with onSaveInstanceState () or I have to use another way?
You can use
onSaveInstanceState to retrieve the current color state list for the
Alternatively you could keep a variable remembering the resource ID of which text appearance style you last set, and save this in