Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Today we have to have a Fragment (PreferenceFragmentCompat) , which limits the possibilities of using the API.
If you want to use FragmentContainerView to have the PreferenceFragmentCompat within, you can't because it can't be extended so that you will be able to override which Fragment it will contain right away (because you can't use supportFragmentManager).
Not only that, but PreferenceFragmentCompat requires you to have an XML for the preferences to be inflated, not allowing you more control of things being created completely dynamically for the RecyclerView.
There is just one function for this, which is "addPreferencesFromResource".
Please offer to be able to do it all more manually.
A solution that relies purely on Views and no Fragments at all. A solution that also allows to add/remove the Preferences on our own.
The reason for this is that in some cases, an Activity/Fragment can't be used (for example when using SAW permission to show content), so you can't use FragmentManager and thus you can't use PreferenceFragmentCompat.