Questions tagged [preferencefragmentcompat]

12 questions
1
vote
1 answer

Android - IllegalStateException: Content has view with id attribute 'android.R.id.list_container' that is not a ViewGroup class

migrated an old project to AndroidX recently, and i'm struggling with implementing settings fragment. Basically I tried to add a settings fragment as an example with some basic preferences. I even used the studio settings activity sample code but…
1
vote
0 answers

ViewModel with PreferenceFragmentCompat

I have a PreferenceFragmentCompat that I would like to use together with a corresponding ViewModel class. Is it doable? The fragment is currently attached to an androidx AppCompatActivity and it works as intended. However, I would like to display…
1
vote
1 answer

Theming PreferenceFragmentCompat

I'm having some troubles setting a theme to PreferenceFragmentCompat trying to achieve this: I have these styles set: