
I am in between creating a settings activity in which i want a switch like the above screenshot. currently my solution is to use two textviews and a switch. is there any straightforward way to do this?
You have to extend your activity with PreferenceActivity. Then you can use whole bunch of preferences like:
EditTextPreferenceListPreferenceSwitchPreference