Questions tagged [edittextpreference]

120 questions
1
vote
2 answers

Android: EditTextPreference dialog showing value from previous invocation

In my application I have a list of accounts in the settings screen. If you click on an account you go to a screen showing the account details. The account name is an EditTextPreference, if you click on it Android shows a dialog enabling you to…
se22as
  • 2,282
  • 5
  • 32
  • 54
1
vote
1 answer

How to show the enter button in keyboard after adding textNoSuggestions to editText?

Basically I'm trying to remove the suggestion underline from the editText and which is done by textNoSuggestions in editText . But now the problem is keyboard is not showing the enter button . So, I wonder how to show the enterKey even after adding…
Srinivas Nahak
  • 1,846
  • 4
  • 20
  • 45
1
vote
1 answer

Update text in TextView through an OnsharedPreferenceChangeListener

I have tried different things for quite some hours now, but I cannot seem to wrap my head around how to update a TextView when a user inputs a new text through an EditTextPreference in Android. I use a switch statement in the …
1
vote
1 answer

App Crashing when clicking on list preference

I am currently in the process of adding a Preferences/Settings activity to my app. I keep running into a problem though. The preference.xml file loads fine but as soon as I try to click either a list preference or an Edit Text preference it crashes…
1
vote
0 answers

Change EditTextPreference background color if empty

In my settings activity, I want to check if the Edittextpreference is empty, before exiting the activity, clicking on the android.R.id.home button or on the back button of the device. If the edittextpreference is empty, I have to do something, like…
1
vote
0 answers

Android custom keyboard, find current typing field position

Is it possible to find current active input field(EditText) reference or position. I have to show suggestion words while user typing on keyboard, and the suggestion I have to show below the editText which is editing that time, (sorry for bad…
Rob
  • 886
  • 9
  • 16
1
vote
1 answer

Access text of EditTextPreference from Fragment

I've got a Preferenceactivity with a EditTextPreference. What I'm looking for is the command to access the inserted text of the EditTextPreference from a fragment. What I have so far: SharedPreferences preferences =…
1
vote
0 answers

how to use EditTextPreference disable buttons by use support library

@Override protected void showDialog(Bundle state) { super.showDialog(state); EditText et = getEditText(); et.addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start,…
1
vote
0 answers

Update an EditTextPreference Summary

This is my XML code, the ListPreference show the edited content with %s, but with the EditTextPreference it doesn't work.
Manuel Rizzo
  • 585
  • 6
  • 14
1
vote
2 answers

Get the editext values from the loop

I am stuck here at one point where I am using the for loop to display the inflater layout multiple time the inflated layout consists of edit text and the spinner.Here is the main problem I am facing is that when I try to get the entire text in the…
1
vote
0 answers

EditTextPreference change value

I put a value in the EditTextPreference input dialog. If I open the dialog again after touch the EditTextPreference, that first value is showed. The question is, how can I set another value to be showed when the dialog opens for the second…
Mazinger
  • 633
  • 1
  • 6
  • 12
1
vote
1 answer

How to make password change prompt confirmation in SettingsActivity for Android?

I have a Settings Activity in Android Studio and a password List item that when clicked prompts an EditTextPreference dialogue with InputType password. How can I make it so that when the user enters the password, another Dialog pops up asking the…
Alex
  • 325
  • 7
  • 16
1
vote
1 answer

EditTextPreference keep last value as hint

I've got this edit text preference It keeps the last value added. How I can delete the…
Manuel Castro
  • 1,633
  • 3
  • 24
  • 38
1
vote
1 answer

I get an error when running PreferenceManager.setDefaultValues on a Sony D2203 but it works when running it on my Sony D2403

The Sony D2203 runs Android 4.4.2 and the D2403 runs Android 4.4.4. The specific line in the code that is giving the error is: PreferenceManager.setDefaultValues(this,R.xml.preference,false); This Is the logcat output of the error: 4-22…
1
vote
1 answer

Extend EditTextPreference and display the DialogMessage

I have extended EditTextPreference, but the Dialog Message won't display. This happens if I add the dialogMessage programatically or in the the preferences.xml. Here is my onBindDialogView: AutoCompleteTextView editText =…