Questions tagged [preference]
445 questions
3
votes
1 answer
Where is the default Preference layout?
I would like to make a custom layout for a Preference with just a very small change from the default layout.
Where can I get the default layout for a Preference so I can simply make my minor change without having to create a nearly identical layout…

zholmes1
- 539
- 5
- 21
3
votes
2 answers
Ringtonepreference not triggering anything at all
I have a RingtonePreference nested inside 2 PreferenceScreen declared as:

kyrax
- 1,192
- 3
- 13
- 29
3
votes
2 answers
Custom Font for PreferenceFragment in android
I was trying to add custom font to Preference Fragment. I tried everywhere but i couldn't solve it. Can anybody suggest me the best possibilities i can do it. Thanks in advance.

Kavin Prabhu
- 2,307
- 2
- 17
- 36
3
votes
1 answer
Android: Show/hide preference on checking/unchecking other CheckBoxPreference
Im trying to accomplish such a thing:
when I check CheckBoxPreference 'A' the other preference ('B') shows below the A,
when I uncheck 'A', preference 'B' hides...
So generally speaking it should work just like dependency but not only…

Bartek Lipinski
- 30,698
- 10
- 94
- 132
3
votes
2 answers
Android - Confirm Dialog when changing the preference
can anyone suggest me a way to perform AlertDialog to confirm the changes when change the CheckboxPreference or SwitchPrerence,
ex. if i want to Uncheck the Preference the AlertDialog should warn them like "Are you sure want to uncheck?" plus the…

Kirk
- 4,957
- 2
- 32
- 59
3
votes
1 answer
How to apply default preference style to a custom preference?
I am developing a custom preference for my Settings menu. Basically it has a title and a seekBar.
I created a layout for the MyPreference it looks so different than e.g. CheckBoxPreference.
How could I apply the style of CheckBoxPreference to…

Remarkable
- 549
- 1
- 3
- 10
3
votes
0 answers
Finding custom Preference's view padding that works for all versions of android
I have a PreferenceActivity containing a custom seekbar that extends the Preference class and it works properly, however I can't seem to find out how to set the margins (or padding) to have the view look the same on 2.3.3-2.3.7 and 4.0+ (the…

Eric Fortier
- 760
- 1
- 7
- 16
3
votes
1 answer
RingtonePreference with custom Ringtone from raw-resources
Currently I am just using a CheckBoxPreference to activate/deactivate sound. The sound is being played from a raw-resource.
Now I want to replace this CheckBoxPreference with a RingtonePreference, but my custom sound from my resources should be the…

metinkale38
- 718
- 3
- 10
- 28
3
votes
0 answers
Failed to collect preference classes
I am new to writing Android applications, so new that my knowledge of Eclipse is so basic it hurts. I want to know why when I start a new Android project (using only default settings) I immediately get an these errors?
Error
Fri Apr 12 00:08:30 EDT…

GabrielC37
- 31
- 3
3
votes
2 answers
Android Preference for API lower and higher than 3.0
Im having a FC issue on my preference setup. I looked on the web for some preference examples to work for both API lower and higher than 3.0. So I got 2 xml preference files just like the tutorial. Then I used the same method to check and call each…

E. X
- 87
- 1
- 10
3
votes
0 answers
apply custom theme in android preference
I want to do few things in my preference screen.
apply custom font to the title
change some icons of preference
change background color and font color when the preference is selected(or touched?)
First, I started with CheckBoxPreference.
to apply…

Ingtellect
- 453
- 3
- 11
3
votes
2 answers
RingtonePreference doesn't save its value
I already worked with some preferences, such as EditTextPreference, etc, and all they work, but now I need to use RingtonePreference, and it does not work properly. Here's very simple code:

Dmitry Frank
- 10,417
- 10
- 64
- 114
3
votes
1 answer
Create dynamic ListPreference (Android)
I want to create a ListPreference in my settings that is populated with the different "years" that are stored in my SQLite database. I've gotten it to add all the years, however it adds them more than once if there is more than one of them. I cannot…

user1526003
- 53
- 8
3
votes
1 answer
Android Custom Preference changing Override
My custom preference class helps color picking.
The custom-preference calls GridView Intent it's include 9 colors.
But My custom class can't refresh color which user-selected on gridview
When I finish the preference intent, then re-launch…

JuHyun Lee
- 139
- 1
- 15
2
votes
3 answers
Variables In PreferenceActivity
In my android application i want to make a feedback dialog that will show the second time the application is started.
How can i do this ?
Can i do it by variables in a PreferenceActivity. If the a variable in the preference activity is edit by feks…

Ukjent
- 823
- 2
- 9
- 26