Questions tagged [edittextpreference]
120 questions
2
votes
1 answer
Android Preference. How to force update summary for the preference with SummaryProvider setted?
I have a modified EditTextPreference with using SimpleSummaryProvider:
If I change this preference…

Snowy Owl
- 151
- 1
- 8
2
votes
3 answers
EditTextPreference not showing numeric keyboard after migrating project to androidx
After migrating my project to AndroidX using the Migrate to AndroidX... functionality provided by Android Studio and having made changes to my dependencies accordingly to have everything running like it is supposed to, I have encountered a minor…

MasterQueue
- 101
- 9
2
votes
3 answers
Change EditTextPreference dialog input text color
I am able to change the title and summary color of my edit text preference. When you click into it I have the background dark and the buttons white. I still need to figure out how to change the actual value text. Any ideas?
Would be great if I…

KisnardOnline
- 653
- 4
- 16
- 42
2
votes
0 answers
PreferenceFragmentCompat, crash with EditTextPreference
I have a settings XML file, implemented in a PreferenceFragmentCompat class. In the XML file, I have a "android.support.v7.preference.EditTextPreference" in a "android.support.v7.preference.PreferenceScreen" like this…

deveLost
- 1,151
- 2
- 20
- 47
2
votes
3 answers
Displaying EditTextPreference current value in summary
I want to be able to display the value of an EditTextPreference in the summary field. Specifically, I want to do this within PreferenceFragmentCompat.
import android.support.v7.preference.PreferenceFragmentCompat;
public class SettingsFragment…

japkin
- 33
- 1
- 6
2
votes
2 answers
Android preferences, customize EditTextPreference
I am setting up the PreferenceScreen for my Android application.
I included a EditTextPreference to specify a remote server.
Now I want to provide the user with an option to reset the address to the initial value inside the popup:
Basically what I…

Martin Jäkel
- 322
- 6
- 21
2
votes
2 answers
Android EditTextPreference disable Dialog
I want to disable(not show) the Dialog, when i click the EditTextPreference in a Preference Activity.
When i click the EditTextPreference, a pop up dialog show. Now i want to disable this. I try set an onclicklistener, but the dialog show same.…

lumoss
- 23
- 2
- 4
2
votes
2 answers
Italic text in Android ListPreference Summary
I am creating a preference screen that has a few EditTextPreference and ListPreference attributes. I am trying to get the summary text to display " not set " when the preference is not set. Using etp.setSummary(Html.fromHtml("…

jonmall
- 123
- 8
2
votes
1 answer
Disable Dialog in EditTextPreference, Launch Intent Instead
I'm trying to write an app using the Google Drive SDK. I'd like to use a Preference object in a PreferenceActivity that allows the user to select the Google account that they want to upload files to. I've been trying to use an EditTextPreference…

Paul
- 303
- 1
- 5
- 20
2
votes
2 answers
EditTextPreference and screen rotation
I searched this place but couldn't find an answer which helped me: I have a settings activity which works with a PreferenceFragment. There is an EditTextPreference on one of the settings. It saves its value nicely. However, when I rotate the screen,…

Skye
- 300
- 2
- 14
2
votes
1 answer
SharedPreferences Validation
I'm a bit new to android dev. I have a preference screen on my app with a bunch of EditTextPreference and checkbox pref. I'm interested in doing validation on the input to the edittextpreference. It seems there is no way to do this using android, so…

user1738987
- 21
- 1
2
votes
2 answers
Get EditTextPreference value
I've created an EditTextPreference and now I want to get the value from any other activity. I've been trying a lot of things but I cannot get it working. Where is this value stored? How can I retrieve it?
EDIT: I want to get the value from a…

anonymous
- 1,320
- 5
- 21
- 37
1
vote
1 answer
How to get the app version in EditTexPreference android
I would like to get the App Version in EditTextPreference for my app.
App Name:
--App Name --
Version
1.0
for example:
it should reflect the version name in build.gradle(app)

Kelvin
- 39
- 7
1
vote
1 answer
How to open keyboard automatically in EditTextPreference?
I have multiple EditTextPreference in my project and I want to open keyboard automatically once I tap on any of the options. Right now I have to tap on the empty space to bring out the keyboard
This is one of the options.
I have tried using this :…

oyeraghib
- 878
- 3
- 8
- 26
1
vote
1 answer
Allow AndroidX EditTextPreference to only accept letters
I have an EditTextPreference set up with a filter to limit it's size, like so:
pref.setOnBindEditTextListener(new EditTextPreference.OnBindEditTextListener() {
@Override
public void onBindEditText(@NonNull EditText editText)…

Rafael Uchoa
- 115
- 3
- 10