android-preferences Questions
1
In a PreferenceFragment, I have a SwitchPreferenceCompat added via XML:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/a...
Pix asked 22/3, 2017 at 15:32
2
Solved
I had the getpreferencescreen deprecated so I tryed to implement the header preference activity.
here is my code:
public class EditPreferences extends PreferenceActivity {
ListPreference m_list_p...
Maxantia asked 11/3, 2013 at 8:14
4
Solved
My PreferenceActivity looks like:
import android.os.Build;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.preference.PreferenceFragment;
import android.widg...
Tenderhearted asked 2/11, 2012 at 10:27
2
Solved
The android system preferences screen on lollipop appears to be using a layout that resembles the "card layout".
I'm trying to get the same look for my app, but can't see how they achieved it wi...
Nival asked 4/2, 2016 at 16:31
4
I have sounds in my /raw folder and I would like my user to be able to choose one sound in preferences exactly like RingtonePreference does but only with my sounds.
Northington asked 3/8, 2012 at 8:31
1
Solved
I just wanted to include a SeekBarPreference in my project with only 3 values (level of emergency : low-Medium-high)
This can easily be done on a classic SeekBar (see example below) but I don't ge...
Vide asked 6/12, 2017 at 10:48
4
Solved
Can anyone can tell me when to use Checkbox and when Switch?
I mean, what is the real login difference between the two in the context of a PreferenceActivity?
For example, will you change the nex...
Obtrude asked 20/1, 2014 at 10:20
2
Solved
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 differenc...
Unblinking asked 25/1, 2016 at 1:49
2
I am trying to style my preferences with a material theme and am almost there.
I imported the following:
compile 'com.android.support:preference-v7:25.1.0'
compile 'com.android.support:preference...
Ausgleich asked 28/1, 2017 at 15:14
3
Solved
Android Backup Service requires a filename to backup shared preferences:
public static final String PREFS = "PrefFile";
SharedPreferencesBackupHelper helper = new SharedPreferencesBackupHelper(th...
Ehlke asked 31/10, 2014 at 12:51
3
I've made a SwitchPreference for my app's preferences.
The problem is that the SwitchPreference is not showing animation when I'm switching between on & off, rather, it is switching with a sud...
Meredeth asked 24/11, 2015 at 7:44
3
How to generate dynamic listPreference in android?
I want to get all wifi access points and make a list using in preference Activity(i.e. make a list using listpreference).
How to do this?
Sacroiliac asked 21/3, 2011 at 8:37
6
Solved
How can we use percentage values for android view elements? something like this
<TextView
android:id="@+id/"
android:layout_width="75%"
android:layout_height="50%"/>
Memnon asked 26/8, 2015 at 17:44
1
Solved
I would like to create a simple (yes/no) dialog preference, I followed the the answers in this post - creating a DialogPreference from XML
But I get an error saying
java.lang.IllegalArgumentExcep...
Fredericfrederica asked 4/8, 2017 at 17:24
1
Solved
I have an android app to which I want to add a simple preferences screen with a single option to switch between to languages (english and portuguese). I have already the proper string resources fil...
Pemberton asked 14/6, 2017 at 20:57
4
Solved
I read this article https://medium.com/@ianhlake/hidden-gems-of-android-o-7def63136629 . This is what is written there:
SharedPreferences is dead. Long live SharedPreferences.
Will SharedPrefe...
Kimes asked 2/5, 2017 at 6:17
1
Struggling with getting a PreferenceFragmentCompat to show a ListPreference.
I believe I have all the proper things set up. String Arrays
<string-array name="categories">
<item>Popula...
Doloroso asked 4/5, 2017 at 13:55
9
Solved
I'd like to create a preference field called Interval and I want to be able to popup a TimePicker and set a mm:ss formated value with minimal value 00:30 and step 30 seconds.
Is it possible to use...
Badlands asked 3/4, 2011 at 22:53
4
Solved
I use PreferenceFragment in ActionBarActivity from support-v7 library.
In the Activity I have Toolbar. Everything goes okay, until I open a nested PreferenceScreen.
In the opened screen the Toolbar...
Skiff asked 9/1, 2015 at 14:4
2
Solved
I want to use Seekbar in setting to choose number 1 to 10. Is there any way to do this? I extend PreferenceActivity for my setting activity.
As I found from here, but I don't know how to create Se...
Clance asked 4/1, 2016 at 8:40
8
Solved
In my application I am using the new Action Bar Compatibility sample from Google (located at <sdk>/samples/android-<version>/ActionBarCompat) which works great. The only problem I hav...
Despot asked 28/10, 2011 at 11:55
1
Solved
I've made a simple PreferenceScreen with multiple Preference Categorys and CheckBoxPreferences.
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<Preference...
Femineity asked 12/11, 2016 at 17:44
2
Solved
After about 1h looking for solutions to my problem in related topics, I decided to expose my case. Here it is: I'm having an InflateException everytime I try to open my PreferenceActivity.
Log
E/...
Steeplebush asked 9/11, 2016 at 23:52
4
I'm currently taking the "Developing Android Apps" Udacity course. In the "Lesson 3: New Activities and Intents > Use SharedPreferences" segment, the instructor asked me to dig around the Android D...
Maser asked 31/10, 2015 at 1:54
0
I want to use the data binding library with the Preferences/Settings Screen in my app.
If yes, please share a link to a tutorial or some other related content for the same.
Appreciate the help :)...
Disoperation asked 20/10, 2016 at 18:16
© 2022 - 2024 — McMap. All rights reserved.