1 year ago

#373353

test-img

Cas

Save button background and drawables using SharedPreferences for a for loop

A have a array of buttons which can have a different drawable and background depending if the button has been pressed. My question is: how can I save the drawable and background of each button in a for loop with SharedPreferences. I want to save this data because it gets reset after changing my screen orientation

kotlin

sharedpreferences

drawable

0 Answers

Your Answer

Accepted video resources