Code examples for EditTextPreference

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
30:	preference = new EditTextPreference(context); 
31:	assertNotNull(preference.getEditText()); 
Full Snippet Info
8
CodeRank
56:	mXmppResource.setText(text); 
-
58:	mXmppResource.setSummary(text); 
Full Snippet Info
7
CodeRank
17:	public void onResume() { 
Full Snippet Info
6
CodeRank
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
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
30:	EditText et = pref.getEditText(); 
-
40:	pref.setOnPreferenceChangeListener(new OnPreferenceChangeListener() { 
-
56:	pref.getOnPreferenceChangeListener().onPreferenceChange(pref,pref.getText()); 
Full Snippet Info
6
CodeRank
62:	String value = pref.getText(); 
-
64:	pref.setSummary(value); 
-
66:	pref.setSummary(defaultText); 
Full Snippet Info
6
CodeRank
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
76:	p.setSummary(editTextPref.getText()); 
Full Snippet Info
6
CodeRank
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
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
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
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
70:	String user = pref.getText(); 
-
76:	pref.setSummary(String.format("Username: %s", user)); 
Full Snippet Info
6
CodeRank
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
64:	preference.setSummary(preference.getText()); 
65:	preference.setOnPreferenceChangeListener( 
Full Snippet Info
6
CodeRank
50:	etp.setText(ret.toString()); 
51:	if((etp.getEditText().getInputType() & InputType.TYPE_TEXT_VARIATION_PASSWORD) == 0) 
Full Snippet Info
6
CodeRank