android-preferences Questions
4
Solved
I want to set title style for my preference fragment screen V14.
This is what I want:
I have followed
Custom PreferenceCategory Headings
I did manage to get the same screen but with PreferenceF...
Mcmurry asked 9/7, 2016 at 6:24
4
I have a preference activity that has a language as ListPreference which displays the available language list. I can fill the list when onCreate is called, but I want to fill the list when the user...
Cove asked 24/6, 2011 at 23:23
10
Solved
As described here, I am subclassing PreferenceFragment and displaying it inside an Activity. That document explains how to listen for preference changes here, but only if you subclass PreferenceAct...
Concettaconcettina asked 28/11, 2012 at 1:23
4
Solved
I want to make my EditTextPreference not editable (as in, nothing happens when you click on the item in the Settings page). How do I do that?
Here is my code:
<PreferenceCategory android:ti...
Undoubted asked 16/3, 2014 at 23:56
1
I have implemented directory picker as a DialogFragment and now I would like to use it in DialogPreference. Is it possible? How to do it?
Mon asked 25/6, 2013 at 15:13
1
In order to have custom fonts for each Preference in PreferenceFragment, I had to write a new customized class for each preference type (CustomSwitchPreference, CustomEditTextPreference, CustomList...
Uranous asked 11/12, 2013 at 10:47
2
Solved
Solved (solution at the bottom)
In my activity I need to read preferences and then override configuration. In constructor Context is not ready yet:
Attempt to invoke virtual method 'java.lang.S...
Mckown asked 4/3, 2018 at 14:0
8
Solved
I've an android application with preferences declared in XML, loaded with addPreferencesFromResource. The user can open preferences, click on each item and edit them, all works.
One preference I h...
Elate asked 26/1, 2011 at 14:50
4
Solved
I am creating an app using one AppCompactActivity and all other views are using Fragment. So I would like to use PreferenceFragmentCompat. But I am getting the following error when I create this.
...
Frank asked 29/2, 2016 at 5:25
2
Solved
I have a switch preference and want it to be defaulted "ON"...
in the xml,
<SwitchPreference
android:defaultValue="true"
android:key="PromoNotificationOnOff"
android:title="@string/Snotifica...
Cyte asked 25/3, 2013 at 3:19
2
Is it possible to use Android Jetpack Navigation Component to navigate the fragments of a Settings Preferences? I have a Settings screens with multiple nested Preference Fragments. I was wondering ...
Guthrun asked 10/7, 2019 at 12:10
6
Solved
I have an android application to save the login details such as user name and password via SharedPreferences thats works fine, but i need to remove all my used SharedPreferences while my applicatio...
Coldshoulder asked 8/4, 2013 at 6:59
10
I am developing an Android app where the user needs to sign in to perform operations. But mostly on an android handset, people use "Keep me signed in", In that case, I'll have to maintain the value...
Musquash asked 10/2, 2012 at 18:44
5
Solved
I have easy problem, but I cannot find solution. Lets have settings page generated over Android studio. And here is one field - password.
<EditTextPreference
android:defaultValue="@string/pre...
Pampa asked 8/9, 2016 at 7:20
10
I'm quite new to Android Development and just came across Preferences.
I found PreferenceScreen and wanted to create a login functionality with it. The only problem I have is that I don't know how ...
Stuff asked 14/3, 2011 at 12:9
2
Solved
In preference screens, I'd like to use MaterialComponent's dialogs (using MaterialAlertDialogBuilder) instead of AlertDialog from AppCompat. However, AppCompat's preference framework hardcodes usin...
Bey asked 25/4, 2020 at 10:15
3
Solved
Please don't point me to How to wrap preference title? as it doesn't work for the case where (as I commented) you use a @strings/ reference to a strings.xml file.
If you use
android:title="@stri...
Disperse asked 27/10, 2013 at 8:53
1
I have filed a bug here on this issue which I believe is a platform bug. If you have a DropDownPreference OnPreferenceChangeListener, Android appears to "choose" the first item once and only once w...
Bodi asked 18/5, 2020 at 10:4
1
Is there a possibility to add an animation to fragment changes in preferences like there is one in the navigation components? Android guide
So I want to perform something like here:
<fragment&...
Fizzy asked 23/12, 2019 at 20:27
4
Solved
I have an application in which I have to implement a "Login" activity. I have these components:
EditText username
EditText password
Button Login
Button Cancel
I want that my application to reme...
Goldwin asked 10/5, 2011 at 12:31
3
Solved
Does anyone used SwitchPreference class from Android and knows how to set the default value? I have implemented it programmatically:
SwitchPreference switch = new SwitchPreference(this);
switch.se...
Overwind asked 25/9, 2012 at 13:10
7
Solved
When I create preference activity I define all preferences in xml file. Every preference has a key defined in this xml. But when I access preference I write:
SharedPreferences appPreferences = Pr...
Aten asked 18/5, 2010 at 12:18
5
Solved
What I want to do is I am working on a game of life program. I want to take the time delay and make it a preference, but I want to make it available for people to type in a specific time. The numbe...
Proteolysis asked 8/7, 2010 at 18:28
8
Solved
I am keeping some application meta data in SharedPreferences. Whenever I uninstall the application and reinstall it, the SharedPreferences are deleted.
Is there any way to get that to remain, so t...
Salangia asked 22/3, 2012 at 1:44
5
Solved
I am trying to make a Preference screen that just has an about, contact, and legal option, all of which when clicked just show text blurb and icon in a separate page, no shared preferences or anyth...
Purchase asked 9/8, 2012 at 13:22
© 2022 - 2024 — McMap. All rights reserved.