preferenceactivity Questions
7
Solved
Using a simple EditTextPreference in my preferences activity:
<EditTextPreference
android:key="SomeKey"
android:title="@string/some_title"
android:summary="..."
android:numeric="integer"
a...
Wizard asked 15/9, 2010 at 20:4
8
Solved
EDIT: The problem described below was due to a very peculiar device issue not caused by any coding-related problem.
I have a preferenceActivity in which I have many checkBoxPreferences.
The checkB...
Chondriosome asked 27/6, 2011 at 23:55
4
I created a preference entry inside preference screen, which looks like this:
<PreferenceScreen>
<Preference
android:title="title"
android:key="key"
android:widgetLayout="@layout/some...
Griff asked 24/3, 2012 at 9:22
2
ListPreferenceHey I'm using PreferenceActivity and added radio button to it using ListPreference. The problem is that listPreference uses it own dialog which has blue radio button (green on lollipo...
Oyster asked 1/9, 2015 at 12:56
7
Solved
Is there a way to dynamically show and hide preferences? In my case, I have a checkbox preference that would disable or enable one of 2 preference groups ("with-" and "without-handicap" groups). Wh...
Zygapophysis asked 16/1, 2011 at 2:54
8
Solved
I am building a Preference Activity where most of the preferences in the list will be executing code and not modifying a SharedPreference directly. My preferences.xml file looks like this.
<...
Tagmeme asked 20/3, 2013 at 23:44
6
Solved
I have a SettingsActivity which extends PreferenceActivity to show settings in my app.
There is a back arrow, but it is not working.
Here's SettingsActivity.java file's code:
public class Setti...
Uveitis asked 5/4, 2016 at 17:36
1
Is there a way to gain add a Content Description to the View representing a Preference in a PreferenceFragment or PreferenceActivity?
Basically I need a way to obtain a handle on the View represen...
Sordid asked 9/10, 2014 at 0:1
4
Solved
Background
I'm making an app that has some settings, and I want to use the built in PreferenceActivity or PreferenceFragment for the job
The problem
Some of the preferences have a long title whi...
Montserrat asked 6/4, 2013 at 17:15
2
I set up the data binding in xml but when i go to the preference activity to actually set up the binding i cant. The file where the data binding xml is in is called preference.xml so i assume there...
Scotopia asked 16/1, 2016 at 2:49
8
Solved
I'm trying to display a actionbar in my preference screen.
In order to do so I added the following code in my SettingActivity
public class PreferencesActivity extends ActionBarActivity {
@Overri...
Lor asked 30/3, 2015 at 22:13
4
Solved
I change color PreferenceScreen with this code.But how get Preference Screen in main Preference activity and change Preference Screen color ???
getListView().setBackgroundColor(Color.TRANSPARENT);...
Monetary asked 3/10, 2012 at 15:8
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
5
Solved
I am having a hard time trying to find a good example of the MultiSelectListPreference provided in the Android API. I have seen many references to this blog, and tho this is the end result I desire...
Tipcat asked 18/6, 2012 at 20:10
6
Solved
I am using a PreferenceActivity to show some settings for my application. I am inflating the settings via a xml file so that my onCreate (and complete class methods) looks like this:
public class...
Dedrick asked 10/4, 2010 at 19:51
6
Solved
I'm trying to start a new Activity from a PreferenceActivity. However, it fails with "Unable to find explicit activity class. Have you declared this activity in your AndroidManifest.xml?"
Well, ye...
Statuesque asked 30/10, 2011 at 16:42
12
I would like to start an Activity from a default preferences.xml, with < intent > tag. The Activities are well tested, the problem is not with that. (I'm extending PreferenceActivity in my app, ...
Marsland asked 1/9, 2011 at 18:51
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
3
Solved
Id like to add an my app version and possibly build on the my SettingsActivity.
Im trying to show an "About Phone" style activity on my app. But I dont know how to go about it.
I am currently usi...
Anaxagoras asked 7/8, 2015 at 9:58
3
Solved
I'm having some problems making PreferenceScreen and applicationIdSuffix work together.
Supposing my app package/applicationId is com.myapp in Gradle and in AndroidManifest.xml, and applicationIdS...
Deland asked 29/6, 2015 at 11:22
8
Solved
After I upgraded to the Support Library v21 my ActionBar in my PreferenceActivity is gone.
Did I miss some attributes in my theme to activate it again? I had some similar trouble with a black Acti...
Aurie asked 22/10, 2014 at 13:55
1
Solved
I have an Android application I've been working on, min sdk = 21. In it, I use a custom PreferenceActivity that in turn calls a PreferenceFragment. However, after recently updating to API 28, I not...
Menado asked 16/9, 2018 at 12:59
7
I want to add ToolBar in PreferenceActivity in my android application. I wrote the following code.
public class SettingsActivity extends PreferenceActivity {
SendSMS sms;
protected void onCreate...
Aniela asked 9/5, 2015 at 11:49
5
I have an SettingsActivity extending AppCompatPreferenceActivity.
my pref_headers.xml looks like this:
<preference-headers xmlns:android="http://schemas.android.com/apk/res/android">
<h...
Kareenkarel asked 30/7, 2018 at 14:21
5
Solved
When I attempt to follow Android's Developer guides and tutorials for creating a Settings Activity using Preferences, I receive warnings such as:
"The method addPreferencesFromResource(int) from t...
Wrest asked 7/2, 2013 at 16:49
1 Next >
© 2022 - 2024 — McMap. All rights reserved.