v7 Preference Support Library: Is one of the packages that added by google in order to provide better backwards compatibility for developers. This package introduced on August 2015.
Questions tagged [preference-v7]
14 questions
115
votes
13 answers
PreferenceFragmentCompat requires preferenceTheme to be set
With the new PreferenceFragmentCompat from the v7 Preference Support Library: http://developer.android.com/tools/support-library/features.html#v7-preference, I get this error
E java.lang.IllegalStateException: Must specify preferenceTheme in…

Intrications
- 16,782
- 9
- 50
- 50
28
votes
2 answers
Installing a support library for PreferenceFragmentCompat
I'm new to Android Studio and a total beginner at Android programming in general. I looked and looked and I couldn't find the right thing to do.
All I want is to install a library to use PreferenceFragmentCompat or any class that replaces…

siriuseteor77
- 1,004
- 2
- 12
- 30
25
votes
8 answers
Inner PreferenceScreen does not open with PreferenceFragmentCompat
My inner PreferenceScreen of PreferenceFragmentCompat is not showing, or seems to ignore tapping events.
I created MyPreferenceFragment that extends PreferenceFragmentCompat
public class MyPreferenceFragment extends PreferenceFragmentCompat {
…

madlymad
- 6,367
- 6
- 37
- 68
17
votes
2 answers
HowTo use support.v7.preference with AppCompat and potential drawbacks
I was trying to implement preferences for an AppCompat app, using support.v7.preference. It took me a couple of days to fiddle through it, since support.v7.preference has some significant differences to the native preferences... which isn't too bad…

maxdownunder
- 5,629
- 3
- 19
- 21
11
votes
2 answers
How to move back from Preferences subscreen to main screen in PreferenceFragmentCompat?
I am trying to implement a Settings screen using PreferenceFragmentCompat. My preference xml has a preference subscreen like this:
preferences.xml

Arpit Jaiswal
- 123
- 1
- 6
6
votes
1 answer
Android - custom row layout in my ListPreference
In my Android application, I have implemented class SubtitleColorListPreference which extends from ListPreference. I need this, because I need to set my own layout for each item in list. Everything works fine and it looks like this:
The important…

PetrS
- 1,110
- 14
- 38
5
votes
4 answers
PreferenceFragmentCompat crashes on initalization
I have made an application with a ViewPager.
Everything is working fine, when I make a debug build, and test it on my phone. (Not emulator)
But when I build a release .apk and install it, the PreferenceFragmentCompat's…

T-bond
- 93
- 2
- 11
2
votes
0 answers
Android - change preference category color on marshmallow
I want to change v7 PreferenceCategory text and divider color.
I have recently viewed this question:
PreferenceFragmentCompat requires preferenceTheme to be set
and I've added this to my style: