Questions tagged [edittextpreference]
120 questions
0
votes
1 answer
ImageButton in EditText
What is the code to make an image button to stay at the top right of an EditText even when scrolled instead of following data input causing a messy appearance?

HM88
- 95
- 2
- 8
0
votes
1 answer
setImeOptions in EditTextPreference
I have a Settingsactivity (big backwards compability needed), where I add items from xml, and some programmatically.
So far it worked fine, but now I faced a problem again.
In xml I was able to set "setImeOptions" for EditTextPreference, but…

hclemens
- 23
- 1
- 7
0
votes
1 answer
Update EditTextPreference title when other preference is pulsed in Android
I've an Android application with a setting menu. I've some EditTextPreferences that when is changed a button in the UI changes too. Moreover, I would like to implemente a Preference that reset the values of all EditTextPreferences. Now I…

user1799803
- 167
- 1
- 2
- 11
0
votes
2 answers
EditTextPreference crashes on OK press
I have a PreferenceFragment activity which shows the following EditTextPreference:

niels
- 59
- 1
- 9
0
votes
1 answer
text from EdittextPreference
My EditTextPreference is this:
in my PreferencesActivity:
namePref =…

Atlas91
- 5,754
- 17
- 69
- 141
0
votes
1 answer
EditTextPreference validate upon entry of text
I have a problem when trying to validate text upon entry of text, I have a hint that a user should follow 'GXW-999' is an example, this is my code:
`public final static String[] PATTERNS = {"[A-Z]{1}" , "[A-Z]{2}" , "[A-Z]{3}" , "[A-Z]{3}-",…

Spurdow
- 2,025
- 18
- 22
0
votes
1 answer
Android EditTextPreference - clear out stored values
I'm creating an Android app that uses Preferences. One of the types of preferences that I'm using is the EditTextPreference that brings up a default Android dialog modal with a text input and OK and Cancel buttons.
I want to give users the option to…

Mario A Guzman
- 3,483
- 4
- 27
- 36
0
votes
1 answer
Multiple input fields in edit text preference
Is it possible to have multiple text input fields under single edit text preference and each input field to have its own key? I want to save phone numbers of 5 individuals and I don't want to create 5 separate edit text preferences for it.

Much Overflow
- 3,142
- 1
- 23
- 40
0
votes
0 answers
Is this the proper/right way of coding?
I have these codes below the Oncreate.
Could someone tell me if this is the right way of coding?
If not the proper way, would you please give me some suggestions?
Thanks alot.
@SuppressWarnings("deprecation")
@Override
protected void onCreate(Bundle…

IYM-14
- 260
- 2
- 11
0
votes
2 answers
Android - Get text and validating it from EditTextPreference
I am implementing a Preference where users enter and save a PIN number. I am using an EditTextPreference for that and the PIN number should exactly be 4 digits. In order to validate it, I used the following OnPreferenceChangeListener() method
final…

Sudara
- 4,769
- 3
- 34
- 39
0
votes
1 answer
OK Cancel buttons in EditTextPreference Android
In the new version of android, the best practice is to have CANCEL - OK button in this particular order. In older versions, the default order is OK - CANCEL.
I am developing an app for 2.3.3 and up. I have set all my buttons to be in the CANCEL - OK…

John Ng
- 869
- 3
- 15
- 28
0
votes
3 answers
How to get EditTextPreference's layout items id
I have a EditPreferences.class which extends preferenceactivity and my preferences.xml layout in my xml folder
in the xml layout i used EditTextPreference control which have layout et_layout.xml
my question is how can i get my textview id in my…

RealDream
- 407
- 3
- 6
- 18
0
votes
1 answer
EditTextPreference validate data before saving
I have a method to validate a EditTextPreference. My method is executed after the confirmation of data by implementing the onSharedPreferenceChanged class.
However, only occurs after you confirm the information. I would perform the check without…

Herculano Gripp
- 31
- 1
- 5
0
votes
0 answers
SharedPreference not saving
Hi I would like to ask why is that my sharedPreference on EditTextPreference is not saving here is my code
SharedPreferences coinPrefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext());
String coin_pref =…

Aldy
- 83
- 1
- 10
0
votes
1 answer
How do I get user input from EditTextPreference (and do something with it)?
I have defined a PreferenceScreen in XML, containing several EditTextPreference "objects". I want to catch user input from these fields, but I can't see to figure out how. The answer would seem to lie here, but I'm not gettng it:…

abc32112
- 2,457
- 9
- 37
- 53