My app has a Preference Screen that looks like this:
But I need to create a new interface that look more like this:
So a kind of button using on/off interface.
Is there somehow a way to convert, by editing the code, the previous interface to the new one (for example to change the SwitchPreferences to Buttons and align them in the PreferenceScreen as shown in the 2nd image) or is it not possible and I should start from scratch?