Questions tagged [edittextpreference]
120 questions
0
votes
1 answer
Fill EditTextPreference programmatically on edit
Below is a part of my code that sets the phone number automatically.
@Override
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
Preference connectionPref = findPreference(key);
if…

david
- 997
- 3
- 14
- 34
0
votes
2 answers
Change fontFamily for Android EditTextPreference
I am trying to change the EditTextPreference fontFamily so that all visible text (including the Preference title and Dialog title) are displayed with a custom font resource. Any suggestions? I have tried establishing a fontFamily in the styles.xml…

qslabs
- 406
- 4
- 8
0
votes
2 answers
Display text from an EditTextPreference in the app?
I have created a setting in the Settings menu that allows a user to enter their name. What I need to know now, is how to display that name. I have pretty much everything done except displaying the name to the right of the nameLabel. Any help is…

user2441911
- 17
- 1
- 6
0
votes
2 answers
enable EditTextPreference visibility while user check or true the CheckBoxPreference in setting
it is possible set android:enabled="false" of EditTextPreference this is by default when user check the checkboxPreference if user click then EditTextPreference enable(true)..
if uncheck then it will go enable(false)
this is the problem..

Ahsan Saeed
- 41
- 1
- 2
- 9
0
votes
1 answer
How To Get Reference of EditTextPreference in my MainActivity?
I am trying to take the value from my edittextpreference and change the font size of the textviews in my mainActivity layout. Please help me with this guys.I must be doing some silly mistake.Help would be appreciated.
MainActivity.java
public class…

Rahul
- 69
- 8
0
votes
3 answers
How to verify email input in android settings
How can I verify a user enters email address in a EditTextPreference for android setting ?

S.L.
- 69
- 10
0
votes
1 answer
how to get string of EditTextPreference and use it in notification.setContent and use it as summery in android?
I want to get username from my app user in setting page with EditTextPreference and use it in Notification. But it shows an error:
xml…
user4568864
0
votes
1 answer
Reading EditTextPreference
I can't seem to understand why I keep getting the "default" string show up when I grab input from the EditTextPreference.

Display Name
- 1
- 1
0
votes
1 answer
How to force EditTextPreference to accept only four letters or more?
In my project settings there is an EditTextPreference which is used to change the username but I don't want the user to set a username less than 4 characters.
Is there any way to limit the user input or to make rules for the value input in…

Karamantina
- 35
- 4
0
votes
1 answer
SharedPreferences does not show types or all of the Preferences form the XML
When I look at the map returning from get all, I can see only the values that were set before as a hashmap and I cannot cast to EditTextPreference.
Its looks like getAll() is getting the preference hash but not the types from the XML
What I am…

Doron Sinai
- 1,166
- 3
- 12
- 28
0
votes
1 answer
Access EditText Preference dialog box
I'm confused on where I should I place this code using sharedPreferences. I'm trying to find out how the dialog box gets created. I want to access the EditTextPreference dialog box and once the user inputs their name I want to save it to a file…

Carlitos
- 419
- 4
- 20
0
votes
3 answers
How to hide the keyboard and update EditTextPreference programmatically?
I am trying to implement the settings activity according to the guidelines. I have an EditTextPreference that I want to keep, but instead of allowing the user to type in any value, the value should come through Bluetooth (i have the Bluetooth part…

Apostrofix
- 2,140
- 8
- 44
- 71
0
votes
1 answer
Android custom EditTextPreference UI is not getting updated
I am trying to customise an EditTextPreference to display a textview(i.e to display value of the preference) and a clear/delete button on its right side.
I created CustomEditTextPreference.java
package com.customedittextpreference;
import…

ChinLoong
- 1,735
- 24
- 26
0
votes
1 answer
My EditTextPreference is not updaing after adding string to Dialog
I've added an EditTextPreference to my Settings.xml with the code below
When I run it the dialog box…

user616076
- 3,907
- 8
- 38
- 64
0
votes
1 answer
Is it possible to have listener on EditTextPreference?
I currently have a Settings Preference Activity consisting of one EditTextPreference. I would like to have an listener when the Dialog closes, so I could run some code
I've tried some of the methods listed here:…

ABM
- 77
- 13