android-preferences Questions
11
Solved
I'm trying to show a PreferenceFragment after I select the Preferences option in my ActionBar.
However, after replacing current content with the PreferenceFragment you can see the old content below...
Inflammatory asked 2/12, 2011 at 21:28
2
Solved
As the title, my PreferenceFragment overlaps my toolbar. I've already tryed different solutions but the problem persists. Hopes in any help. Here is my code.
Activity
import android.os.Bundle;
impo...
Gibert asked 28/2, 2016 at 12:28
2
Solved
I'm trying to use PreferenceFragmentCompat from the v7 support library. When I try to add it, it always returns the following exception
Process: com.sample.preferencetest, PID: 14444
java.lang.Run...
Monotonous asked 12/5, 2016 at 19:12
5
Solved
Is it possible to define a ListPreference in Xml and retrieve the value from SharedPreferences using getInt? Here is my Xml:
<ListPreference android:key="@string/prefGestureAccuracyKey"
androi...
Corinacorine asked 24/4, 2010 at 17:2
6
Solved
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:title="First Category"
android:textSize="20px">
<CheckBoxPreference
an...
Autotomy asked 17/3, 2011 at 4:21
2
Solved
I'm following the example method to add a compatible preference/ fragment dialog found here. When doing so, I have found that if I have preferences that are Integers, Boolean, etc, it just crashes....
Nicolis asked 23/11, 2013 at 1:20
4
Solved
I have a simple preference screen defined like this
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="Security">
<...
Bawd asked 9/6, 2011 at 18:41
8
Solved
I want to change the text color in android preferences fragment. I am currently using a custom theme to change the checkbox image, background, onClick highlighting and it all works great...besides ...
Fanfani asked 1/2, 2013 at 6:53
3
Solved
I'm developing a material design app.
After adding settings.xml in SettingsActivity.java & running the app, the activity is appearing like this:
Here's SettingsActivity.java file's code:
p...
Hardfavored asked 6/10, 2015 at 3:32
3
I have seen something like this:
<PreferenceCategory xmlns:android="http://schemas.android.com/apk/res/android"
android:key="vegi_category" android:title="Vegetables"
android:summary="Prefer...
Emulsoid asked 2/11, 2011 at 9:59
2
Solved
I would like to change the title and line color of my ListPreference from blue to pink, to match the line of my action bar.
Any ideas? Thanks in advance!
I've been looking through Android's the...
Bax asked 23/10, 2013 at 2:29
2
Solved
i have the following xml:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="R...
Nonalignment asked 12/2, 2011 at 11:45
2
Solved
I migrated a project of 2 years old to Android Studio (and the new lib), I have a lot of problems when I call a PreferenceScreen.
java.lang.NoSuchFieldError: No static field list_container of type...
Lehmbruck asked 23/3, 2016 at 13:41
3
Solved
I have an Android application in which I have my preferences in an XML file, which works fine. I now want to set one of the preferences using code instead of displaying the entire preference screen...
Rubin asked 16/2, 2009 at 2:26
3
Solved
I have a preference screen and i am specifying a layout resource using the android:layout attribute. In the preference activity i am using/inflating the preference using addPreferencesFromResource ...
Bolt asked 31/3, 2013 at 9:39
4
Solved
My application should work not only in online but also in offline mode. For that reason I am considering find the best way for cashing data. I't like use SharedPreference for store data but in andr...
Byroad asked 29/8, 2013 at 8:55
4
Hi I am working on Message Settings as a preference.
I am trying to change android:title and android:summary text font size of CheckboxPreference.
For this I am trying out the below code
<...
Lipread asked 13/9, 2013 at 13:24
1
I am developing Android app A so that another one B could read A's SharedPreferences.
In javadoc for android.content.Context the following is said about both MODE_WORLD_READABLE and MODE_WORLD_WRI...
Roily asked 3/4, 2014 at 6:37
1
Solved
i want use PreferenceScreen for setting page, i know use EditTextPreferences and use this text. but i don't know other Objects, for example : i don't know change text color from ListPreference, or ...
Nanete asked 24/2, 2016 at 10:10
4
Solved
I have PreferenceFragment and a PreferenceActivity from which I add headers from a XML file on this way:
PreferenceActivity
@Override
public void onBuildHeaders(List<Header> target) {
if(...
Adamec asked 1/4, 2013 at 18:53
2
I've written a class that is using Context, a third party library and SharedPreferences from PreferenceManager.
It's possible to mock Context, the third party library can be mocked using some moc...
Afrikander asked 26/7, 2010 at 17:58
1
Solved
I've created a settings menu for my app based on PreferenceFragment, and would like to access the settings dialog(s) from elsewhere in the app without having to open the settings menu.
My settings...
Brame asked 25/6, 2014 at 8:32
2
Solved
I have this RingtonePreference (from Android Studio's default SettingsActivity):
pref_notification.xml:
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<Ri...
Stag asked 30/7, 2014 at 20:49
3
Solved
I'm trying to add an ImageView to a preference fragment in order to show a preview of a color setting. I'm accessing the instance of the imageview via the onCreateView method toset the test color, ...
Poseidon asked 11/4, 2013 at 5:14
2
Solved
I want to launch System's Location Settings from an Intent. I know that programmatically it goes like this
Intent viewIntent = new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS)...
Faina asked 14/4, 2013 at 16:42
© 2022 - 2024 — McMap. All rights reserved.