When using features such as SeekBar and Spinner,

Asked 1 years ago, Updated 1 years ago, 101 views

You know the likes of Switch, SeekBar, and Spinner? By the way, what options should I give to save these changes?

For example, if you have a black white blue red by making a spinner how to change the background color,

The default value is set to black, change from black to white, and go back to the first page or go to the other page, and it's black, so is there any way to prevent it?

spinner switch seekbar android

2022-09-21 22:08

1 Answers

Shared Preference is usually used for settings. Once an item has been set up in the spinner, save the value in the preference and take the value stored in the preference when the activity (or view or fragment) with the spinner is started.


2022-09-21 22:08

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.