Best code examples for Android EditTextPreference class (android.preference.EditTextPreference)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android EditTextPreference class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android EditTextPreference examples from Open Source projects
This code example shows how to use the following methods: getEditText
30:	preference = new EditTextPreference(context); 
31:	assertNotNull(preference.getEditText()); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: setText, setSummary
56:	mXmppResource.setText(text); 
-
58:	mXmppResource.setSummary(text); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getContext, getSharedPreferences, setEnabled, setSummary
17:	public void onResume() { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setText, setDependency, setKey
133:	pref.setKey(baseName + "_" + key); 
134:	pref.setDependency(dependency == null? null: dependency + "_" + key); 
-
136:	pref.setText(sharedPrefs.getString(baseName + "_" + key, defValue)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getEditText, getText, getOnPreferenceChangeListener, setOnPreferenceChangeListener, onPreferenceChange
30:	EditText et = pref.getEditText(); 
-
40:	pref.setOnPreferenceChangeListener(new OnPreferenceChangeListener() { 
-
56:	pref.getOnPreferenceChangeListener().onPreferenceChange(pref,pref.getText()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getText
76:	p.setSummary(editTextPref.getText()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getContext, getSharedPreferences, setEnabled, setSummary
17:	String timeAgoStr = pref.getSharedPreferences().getString("recentvideo_last_refresh", "0"); 
-
24:	text = TimeAgo.toFriendlyString(pref.getContext(), timeAgo); 
-
27:	pref.setSummary(text); 
28:	pref.setEnabled(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getText, setSummary
62:	String value = pref.getText(); 
-
64:	pref.setSummary(value); 
-
66:	pref.setSummary(defaultText); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setText, setKey, setSummary, setTitle
77:	homeDir = new EditTextPreference(this); 
-
79:	homeDir.setKey("home_dir"); 
80:	homeDir.setTitle("Домашняя папка"); 
81:	homeDir.setText(prefScreen.getSharedPreferences().getString("home_dir", 
-
83:	homeDir.setSummary("Эта папка будет отображаться при запуске приложения.Текущая папка " 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setSummary
81:	editTextPreference.setSummary(sharedPreferences.getString(key, "")); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDialogTitle, setText, setKey, setSummary, setTitle
63:	editUsername.setText(strSavedUsername); 
-
121:	editUsername = new EditTextPreference(this); 
122:	editUsername.setDialogTitle("Username:"); 
123:	editUsername.setKey("edittext_preference"); 
124:	editUsername.setTitle("Username"); 
125:	editUsername.setSummary("Change master username"); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getText, setSummary
70:	String user = pref.getText(); 
-
76:	pref.setSummary(String.format("Username: %s", user)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setDialogTitle, getEditText, setDefaultValue, setKey, setSummary
98:	EditTextPreference decimalPlaces = new EditTextPreference(this); 
99:	decimalPlaces.setDialogTitle("Number of Decimal Places"); 
100:	decimalPlaces.setKey(PREFS_DECIMAL_PLACES); 
101:	decimalPlaces.setTitle("Decimal Places"); 
102:	decimalPlaces.setSummary("The number of decimal places to round to"); 
103:	decimalPlaces.setDefaultValue(new Integer(PREFS_DECIMAL_PLACES_DEFAULT).toString()); 
104:	decimalPlaces.getEditText().setKeyListener(integer); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setDialogTitle, getEditText, setDefaultValue, setKey, setOnPreferenceChangeListener
168:	EditTextPreference preference = new EditTextPreference(this); 
169:	preference.setTitle(name); 
170:	preference.setSummary(desc); 
171:	preference.setDialogTitle(name); 
172:	preference.setKey(key); 
173:	preference.setDefaultValue(def); 
174:	preference.getEditText().setInputType(inputType); 
-
176:	preference.setOnPreferenceChangeListener(preferenceChangeLis); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getEditText, setDefaultValue, setKey, setOnPreferenceChangeListener, setDialogTitle
86:	p = new EditTextPreference(context); 
87:	p.setKey(getKey()); 
88:	p.setDefaultValue(getDefaultValue()); 
89:	p.setTitle(getTitle()); 
90:	p.setDialogTitle(getTitle()); 
91:	p.setSummary(formatSummary(getValue(prefs))); 
92:	p.setOnPreferenceChangeListener(newEchoListener()); 
-
95:	field = p.getEditText(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setDefaultValue, setKey, setSummary, setTitle
24:	EditTextPreference pref1 = new EditTextPreference(context); 
25:	pref1.setSummary("Longitude server host:port"); 
26:	pref1.setKey("longitude_server"); 
27:	pref1.setTitle("Longitude server"); 
28:	pref1.setDefaultValue(""); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getEditText, setDefaultValue, setKey, setOnPreferenceChangeListener, setDialogTitle
86:	p = new EditTextPreference(context); 
87:	p.setKey(getKey()); 
88:	p.setDefaultValue(getDefaultValue()); 
89:	p.setTitle(getTitle()); 
90:	p.setDialogTitle(getTitle()); 
91:	p.setSummary(formatSummaryFor(getValue(prefs))); 
92:	p.setOnPreferenceChangeListener(newChangeListener()); 
-
95:	field = p.getEditText(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getEditText, setText
50:	etp.setText(ret.toString()); 
51:	if((etp.getEditText().getInputType() & InputType.TYPE_TEXT_VARIATION_PASSWORD) == 0) 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getText, setSummary
58:	String password = instaPassPref.getText(); 
-
66:	instaPassPref.setSummary(""); 
-
68:	instaPassPref.setSummary("******"); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getText, setIntent, setOnPreferenceClickListener, setSummary
72:	pEtFolder.setSummary(pEtFolder.getText()); 
-
176:	pEtFolder.setIntent(folderIntent); 
177:	pEtFolder.setOnPreferenceClickListener(this); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDialogTitle, getEditText, setDefaultValue, setDependency, setEnabled
117:	EditTextPreference notifyInterval = new EditTextPreference(this); 
118:	notifyInterval.setKey("notifyinterval"); 
119:	notifyInterval.setTitle("Notification Interval"); 
120:	notifyInterval.setDialogTitle("Notification Interval (in hours)"); 
121:	notifyInterval.setDefaultValue("24"); 
122:	notifyInterval.getEditText().setKeyListener(new NumberKeyListener() { 
-
134:	notifyInterval.getEditText().setMaxLines(1); 
-
137:	notifyInterval.setEnabled(isInterval); 
138:	notifyInterval.setDependency(notifyEnabled.getKey()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDialogTitle, getEditText, setKey, setTitle
33:	EditTextPreference editPasswordPref = new EditTextPreference(this); 
34:	editPasswordPref.setDialogTitle("Password"); 
35:	editPasswordPref.setKey("password"); 
36:	editPasswordPref.setTitle("Password"); 
37:	editPasswordPref.getEditText().setTransformationMethod( 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setSummary
85:	textSizePref.setSummary(sharedPreferences.getString("text_size", "10")); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getText, setOnPreferenceChangeListener, setSummary
64:	preference.setSummary(preference.getText()); 
65:	preference.setOnPreferenceChangeListener( 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getText, setSummary
71:	mHost.setSummary(mHost.getText()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getText, setSummary
70:	mPassword.setSummary(mPassword.getText()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getText, setText, setSummary
46:	if (txt.getText().length() > 0) { 
47:	txt.setText("http://"+txt.getText().replace("http://", "")); 
48:	txt.setSummary("http://"+txt.getText().replace("http://", "")); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getEditText, getText, getSummary
77:	String summaryText = editTextPref.getText() != null ? editTextPref.getText(): editTextPref.getSummary().toString(); 
-
80:	if (editTextPref.getText() != null && editTextPref.getEditText().getInputType() == TEXT_PASSWORD) { 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getEditText, getText, getSummary
77:	String summaryText = editTextPref.getText() != null ? editTextPref.getText(): editTextPref.getSummary().toString(); 
-
80:	if (editTextPref.getText() != null && editTextPref.getEditText().getInputType() == TEXT_PASSWORD) { 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setText, setEnabled, setSummary
79:	proxyHost.setText(profile.getProxyHost()); 
80:	proxyHost.setSummary(profile.getProxyHost()); 
81:	proxyHost.setEnabled(throughProxy.isChecked()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getSummary
26:	pref.setSummary(textPref.getSummary()); 
27:	Log.d("KALSMS", "textPref.getSummary(): " + textPref.getSummary()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getText, setText, setSummary
64:	port.setText(mCursor.getString(column_port)); 
-
67:	port.setSummary(checkNull(port.getText())); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getText, setSummary
76:	if (!isEmpty(rssUrlPreference.getText())) { 
77:	rssUrlPreference.setSummary(rssUrlPreference.getText()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getText
57:	pref.setSummary(etp.getText()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getText
95:	p.setSummary(editTextPref.getText()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getText, setSummary
45:	edittext_preference.setSummary(edittext_preference.getText()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getText, setSummary
196:	mTickSymbolPreference.setSummary(mTickSymbolPreference.getText()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getText, setSummary
108:	currentPreference.setSummary(currentPreference.getText()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getText, setSummary
54:	mVotingPref.setSummary(mVotingPref.getText()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getText, getSummary
51:	String sum = textPref.getSummary().toString(); 
52:	pref.setSummary(sum.replaceFirst(": .*", ": " + textPref.getText())); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setText, setDependency, setOnPreferenceChangeListener
169:	storyFooterFontSizePreference.setDependency(STORY_FOOTER_SHOW); 
-
175:	storyFooterFontSizePreference.setOnPreferenceChangeListener(this); 
-
214:	storyFooterFontSizePreference.setText(Integer.toString(theme.getFooterFontSize())); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setSummary
78:	IPAddressPreference.setSummary(sharedPreferences.getString(key, "Set an new IP address")); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setText, setOnPreferenceChangeListener
25:	refreshPreference.setText(Integer.toString(PreferenceUtils.getRefreshInterval(getActivity()))); 
26:	refreshPreference.setOnPreferenceChangeListener(this); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getSummary
25:	pref.setSummary(textPref.getSummary()); 
26:	Log.d("TXTGATE", "textPref.getSummary(): " + textPref.getSummary()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setText, setOnPreferenceChangeListener
24:	mEdit.setText(value); 
25:	mEdit.setOnPreferenceChangeListener(this); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getText, getKey
91:	if (editTextPref.getKey().equals("password")) { 
-
94:	p.setSummary(editTextPref.getText()); 
Full Snippet Info
4
CodeRank
Related Android EditTextPreference Questions & Answers:
See Code Examples for Android EditTextPreference Methods: