I am trying to accomplish something that, in my opinion, is pretty simple, but I donβt understand how to do it using the PreferenceActivity class and xml preference header tag.
When the user clicks the application settings icon, I would like them to be represented by a small list of checkboxes and lists. I have only one piece of preference. So far, I can customize the XML PreferenceActivity files (preferences.xml and xmls preference fragments) to show a single header for the preference fragment. When the user selects this title, the settings screen is exactly the way I want it, however I cannot figure out how to skip the display of the first title screen.
It seems like spending time using the settings / preferences icon, showing one heading, which is then used to get the actual settings / preferences.
I understand how this can be very useful if you want to classify your preferences, but for something simple, it adds overhead and seems rather awkward.
I hope I was clear. In short, here is my question:
What is the new preferred way to use the PreferenceActivity class and preference header tag to just show one options screen without a header?
Looking around a little more, it looks like I'm trying to do what the old methods did in a straightforward manner. I am trying to do this without using legacy features.
Thanks in advance B.
android android-fragments android-preferences
Billbris Jul 08 2018-12-12T00: 00Z
source share