I'm trying to accomplish something that I think is quite easy, but I'm baffled on how to accomplish it using the PreferenceActivity class and the xml preference-header tag.

When the user taps the app settings icon I would like them to be presented with a small list of checkboxes and lists. I have only a single preference fragment. So far I can set up the PreferenceActivity xml files (preferences.xml, and preference fragments xmls) to show the single header for the preference fragment. When the user selects that header the preferences screen is exactly how I want it, however, I cannot figure out a way to skip showing the first header screen.

It seems a waste to have to tap the settings/preferences icon, show a single header that is then tapped to get to the actual settings/preferences.

I understand how this can be very helpful if you want to categorize your preferences, but for something simple, this adds overhead and seems rather clunky.

I hope that I was clear. In short here's my question:

What is the new preferred way to use the PreferenceActivity class and preference-header tag to simply show a single screen of options with no header?

After looking around some more it looks like I am trying to do what the older methods did in a straight-forward manner. I'm trying to do this with without using any of the deprecated functions.

Thanks in advance, B.

Edit
Report