Questions tagged [android-preference-v14]
13 questions
7
votes
1 answer
SwitchPreferenceCompat looking different when added to XML vs created programmatically
In a PreferenceFragment, I have a SwitchPreferenceCompat added via XML:
…

fweigl
- 21,278
- 20
- 114
- 205
4
votes
2 answers
Preference with multi-line title on android
I'm using Android SharedPreferences API to build a settings screen.
I've one setting which I need a long text to explain the user its meaning (I would like to have something like main title and smaller subtitle,but i think it would require to much…

Rafael Lima
- 3,079
- 3
- 41
- 105
4
votes
1 answer
preference-v14 ListPreference uses the default color for the radio buttons
I'm using the preferences-v14 support library.
When I use ListPreference, the radio buttons are colored not according to the accent color of my theme (when running on Android 5.1).
When in Android 4.1, the radio buttons become black.
How to make the…

Randy Sugianto 'Yuku'
- 71,383
- 57
- 178
- 228
3
votes
1 answer
How to set PreferenceFragmentCompat accentColor?
I'd like to override the accentColor used by v14 PreferenceFragmentCompat.
I'm using a pink accent color for the outer frame of my Android app. This creates problems in many situations as it causes standard controls to use an accent color that's…

Robin Davies
- 7,547
- 1
- 35
- 50
2
votes
2 answers
ActivityNotFoundException when trying to invoke an 'explicit' intent from Preferences, to open an Activity in default package?
In the following SSCCE I am trying to invoke an explicit intent from preferences.xml, to open an Activity which is located in the one and only package in the app, in which all Activity's are located.
But I get the following…

Solace
- 8,612
- 22
- 95
- 183
1
vote
1 answer
How to customize the layout (maxLines) of a CheckBoxPreference?
I am using the following settings.xml to inflate my SettingsFragment extending android.support.v7.preference.PreferenceFragmentCompat:
…

JJD
- 50,076
- 60
- 203
- 339
1
vote
2 answers
SwitchPreference create programmatically, setChecked not working
I want to
create a SwitchPreference programmatically
set setChecked(true) on it
add it to a PreferenceGroup
1 and 3 work fine, but after 3 the SwitchPreference is not checked and clicks on the toggle have no effect (can't be 'turned on'/…

fweigl
- 21,278
- 20
- 114
- 205
1
vote
0 answers
Custom Item Preference has large font style and bugs
I facing with this problem many times and always leaving it for the best times ;)
But now I want to get a solution. In all my apps I can't make preference screens with Preference Support libs properly. Always I get some view issues such as:
On a…

Trancer
- 765
- 2
- 8
- 23
0
votes
0 answers
How to hide a Preference in xml android?
I should hide a preference in xml. Here is an example.
Instead of removing the entire functionality, I need to hide the second preference which is top_level_connected_devices as key in xml. I am using android 10.

Shadow
- 6,864
- 6
- 44
- 93
0
votes
3 answers
Adding support:preference-v7 or -v14 library causes Gradle build to fail
My project builds fine, until I attempt to include the Support Preference library.
When I do, build fails with this…

19lmyers
- 367
- 1
- 16
0
votes
1 answer
Android: Creating custom support v7 preference not working as Expected
I have created a sample demo application for the custom Android preference using support library preference-v7.
Code: https://github.com/saurabhkpatel/Android-Custom-Preference-Sample
I am facing two problems here:
In this demo application, I have…

sam_k
- 5,983
- 14
- 76
- 110
0
votes
1 answer
Style from the preferences support library can't be found
I'm building an android app using xamarin.android, with minimum API of 14.
I have been using Xamarin.Android.Support.v7.Preference - version 23.4.0.1 , to build a preference page for my app.
I have to specify a style for the preference page, so i…

David Barishev
- 534
- 7
- 30
0
votes
0 answers
NoClassDefFoundError:with PreferenceFragmentCompat
I am doing an application using the PreferenceFragmentCompat when i call the PreferenceFragmentCompat i am getting the error like java.lang.NoClassDefFoundError i am getting the confused what to do i have tried and checked some google suggestion it…

koteswara D K
- 628
- 2
- 9
- 19