android-preferences Questions
2
I have got a trouble with layout of Preference screen after updated SDK to version 28 (Android Pie). Each PreferenceScreen has a new padding on the left.
As I've checked, there is a method to set ...
Dedrick asked 27/9, 2018 at 17:24
2
Solved
How can I display the seekbar value using a SeekBarPreference?
<PreferenceCategory
android:title="Delay between change image">
<SeekBarPreference
android:id="@+id/preference_delay_se...
Scarabaeus asked 3/4, 2014 at 14:36
6
In my preference file I go this
<PreferenceCategory android:title="Title" >
<Preference android:title="title" >
<intent android:action="com.my.package.MainActivity"
/>
</...
Femur asked 11/2, 2013 at 10:35
3
Solved
For debugging purposes I need to access the shared preferences file of my application. As far as I know I should find this file in /data/... but I can't access the /data folder through to missing p...
Loving asked 10/5, 2011 at 14:14
3
Solved
Background
On previous versions of support library, we could use headers in order to have a main-menu screen of settings, that each would open a new settings screen (fragment) .
The problem
Now...
Grith asked 9/10, 2018 at 14:39
6
I have created a PreferenceFragment with two categories and one checkbox, however, when I display it in my app, the background appears to be transparent.
I can see the main activities, fields and ...
Mandrill asked 28/4, 2014 at 21:25
1
Solved
It's seems that ImageView is not supported out of the box in PreferenceScreen, how can I implement that so it's similar to whatsapp's.
Shackleton asked 28/12, 2019 at 0:33
11
Solved
I have an ArrayList of objects that have a name and an icon pointer and I want to save it in SharedPreferences. How can I do?
NOTE: I don't want to use Database
Guildhall asked 6/10, 2010 at 20:40
3
In androidx.preference.Preference (using Version 1.1.0-beta01) it is possible to set a summary provider, which I did inside the onCreatePreferences method of a PreferenceFragmentCompat.
override f...
Katy asked 12/6, 2019 at 20:22
3
Solved
I have an android.support.v4.preference.PreferenceFragment which uses the following PreferenceScreen:
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<Prefer...
Marrilee asked 14/7, 2015 at 22:53
4
Solved
I'm currently trying to make a settings menu, that will show a MultiSelectListPreference, to select multiple contacts from your contact list.
At this moment, I'm receiving an NullPointerException,...
Serigraph asked 15/1, 2013 at 14:11
2
I start new tv app and now I need to develop dynamic preferences for set quality of stream, language of stream etc.
So I was planning to use android.preference library and dynamically generate perf...
Hoarding asked 10/9, 2019 at 7:42
2
This is my code:
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
<PreferenceCategory android:title="title" >
<Preference
android:layout="@layout/cu...
Folkestone asked 20/7, 2014 at 22:5
3
Solved
How do you turn off Notification programmatically from a settings options inside an app?
The approach of creating the Notification channel inside an if statement in a Preference change listener s...
Gleesome asked 22/9, 2019 at 7:54
3
Solved
I have a PreferenceActivity with several fragments:
R.xml.preferences: (shortened for better readability):
<?xml version="1.0" encoding="utf-8"?>
<preference-headers xmlns:android="http...
Theodora asked 2/12, 2012 at 18:43
2
Since PreferenceFragment is deprecated, I use PreferenceFragmentCompat.
After replacing the fragment, I get left indentation from the content.:
Indentation most likely appears because of the ico...
Obsequious asked 23/8, 2018 at 12:37
1
Solved
This is a very rare bug that's happening in my app. Users open SettingsActivity and notice the app has frozen, after which it crashes (5 - 10s later?).
I have no idea how to proceed, I've tried deb...
Haas asked 15/8, 2019 at 10:4
3
Solved
My problem is that I wanted to add a PreferenceScreen to my Application, but I can't use it and I don't know why.
I implemented the library androidx.preference:preference:1.1.0-rc01. Then I wanted...
Stability asked 12/8, 2019 at 18:48
4
Solved
New to Android, I have some code when the user changes a preference I update the Summary field in the UI preference to be the value they entered. However, when the preference activity is created I'...
Little asked 30/9, 2010 at 2:51
1
Solved
I have following code
<androidx.preference.PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android">
<EditTextPre...
Goofball asked 13/7, 2019 at 11:45
2
Solved
I am trying to use the new androidx preference library but Android Studio simply does not recognize it in the xml. In my res/xml/setting_prefs.xml, I have
<?xml version="1.0" encoding="utf-8"?&...
Mablemabry asked 4/1, 2019 at 13:5
10
Solved
I started dealing with preferences in a PreferenceFragment. Here's what I have:
I'm trying to:
get rid of the dividers between items. I suppose this can be defined from styles, but I can't fig...
Selassie asked 3/1, 2015 at 1:40
6
I'm trying to add toolbars to the AppCompatPreferenceActivity but I don't know how to do so.
Can you tell me how?
Progeny asked 8/5, 2015 at 2:15
0
I would like to store user preferences in Firebase real time database instead of typical sharedPreferences.
As an example, my user should specify the itemId in order to access to this part of the...
Buine asked 23/3, 2019 at 6:40
14
Solved
I have PreferencesActivity which I need it to be right aligned because I want to use Arabic language, I tried to use android:layout_gravity="right" for PreferenceScreen but it didn't work.
This is...
Audrieaudris asked 4/7, 2012 at 15:55
© 2022 - 2024 — McMap. All rights reserved.