Questions tagged [preference]

445 questions
3
votes
0 answers

User preferences in Rails with Admin edit and i18n support

We've been working on a ruby project involving users, private messages and any kind of network based related features. We already have some preferences system that allow users to describe their self. Hair color, wear-style, height, weight, shape,…
gabrielstuff
  • 1,286
  • 1
  • 13
  • 16
3
votes
1 answer

Preference onClick

I made a settings menu for my app but was wondering how would i go about starting a activity when a Preference is clicked in the menu? I want the user to be able to click on a menu bar saying "Change password" and for it to start another activity so…
Jonathan
  • 255
  • 2
  • 4
  • 10
3
votes
1 answer

ListView in Preference

I've created a custon preference screen for my Android application (Honeycomb), that contains a ListView. public class XXXPreferences extends Preference { @Override protected View onCreateView(ViewGroup parent) { ListView... …
Nico
  • 31
  • 1
3
votes
2 answers

Change text size on the positveButtonText in the EditTextPreference dialog

I cannot figure out how to change the text size on the buttons in the EditTextPreference dialog popup box. I would like all my text throughout my app to be streamlined at 24 sp. This is happening everywhere except this dialog box from the…
tzg
  • 616
  • 1
  • 8
  • 17
3
votes
0 answers

How to access a view inside the layout of a Preference, Android

I have a PreferenceScreen with several PreferenceCategories. Each Preference has a custom layout. This layout contains a TextView. My goal is to get access to this TextView in the Java code to modify its text. Here is my example: In the…
MMasmoudi
  • 508
  • 1
  • 5
  • 19
3
votes
7 answers

Calling setDefaultValue() on a custom Preference class does not set the default value. Why?

I'm extending PreferenceActivity for my settings screen. In this preference activity i have a couple of preferences one of which is custom made. The problem is as follows: in this custom preference (which extends from ListPreference) i want to be…
3
votes
1 answer

Android ringtone preference - fetch data

i have a ringtone preference. How can i get the selection? I have the following kind-of-code: if(preferences.getString("ringtonePref", "n/a") != ??) { Toast.makeText(TutorialPref.this, "Chosen ringtone: silent",…
erdomester
  • 11,789
  • 32
  • 132
  • 234
3
votes
2 answers

PreferenceActivity as Main Activity

I'm a noob working on my first app that consists of the following: Main Activity which simply has one CheckBox which upon an onClick starts/stops my service. Service which runs a method (quick database query) every 60 seconds. After getting…
capitalf
  • 471
  • 1
  • 6
  • 14
3
votes
0 answers

How to change a PreferenceFragment style/theme?

I have a PreferenceFragment and I want to change the background, text color, and a couple other things however I can't find a way to change the fragments style without affecting other fragments in my app. I tried a solution mentioned at Applying…
J.D
  • 51
  • 7
3
votes
0 answers

Use a RingtonePreference in PreferenceFragmentCompat?

I am using PreferenceFragmentCompat for my settings activity, and would like to implement a RingtonePreference, which does not come with this type of Preference library. The only other question on this topic does not have an answer on how to…
Nick Friskel
  • 2,369
  • 2
  • 20
  • 33
3
votes
1 answer

Spyder-IDE how to leave argument inspection open

Lets say I type the following in Spyder-IDE: min( Spyder will then automatically open the arguments list of the function min and give me: Arguments min(iterable[, key=func]) I find this very helpful but Spyder closes this list after 1.5sec. I…
Ohumeronen
  • 1,769
  • 2
  • 14
  • 28
3
votes
3 answers

How to remove the horizontal line in the bottom in PreferenceScreen?

I am getting one horizontal line in but there is not any horizontal line in the bottom ,I don't know where is wrong
zys
  • 1,306
  • 3
  • 18
  • 37
3
votes
1 answer

How to add keywords to search preferences in Eclipse

I added a preference by using this example: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/plain/examples/org.eclipse.ui.examples.readmetool/Eclipse%20UI%20Examples%20Readme%20Tool/org/eclipse/ui/examples/readmetool/ For the actual…
Sarp Kaya
  • 3,686
  • 21
  • 64
  • 103
3
votes
0 answers

Android custom Preference: Where to put code for cleanup?

I'm creating a custom android.preference.Preference and in the constructor I need to register a listener for changes in SharedPreferences: public class MyPreference extends Preference { private final…
3
votes
2 answers

eclipse coloring: how to config the background color of folding margin?

I checked every possible editor coloring options carefully, but the background color of folding margin seems not in the preferences dialog. Is it possible to config this?
luikore
  • 750
  • 5
  • 16