I donβt think it is very easy and cannot check it right now, but technically it should be possible ...
You should use a PreferenceManager that has a createPreferenceScreen(Context ctx) method that (obviously) returns a PreferenceScreen , which, according to the docs:
Represents a top-level preference that is the root of a preference hierarchy. A PreferenceActivity points to an instance of this class to show preferences.
And this class, in turn, has a getView(View convertView, ViewGroup parent) method that returns a View , and according to the docs:
Gets the view that will be displayed in the PreferenceActivity.
Therefore, I believe that setting this returned view in your activity should display just like PreferenceActivity ...
source share