Search in sources :

Example 16 with EditTextPreference

use of android.support.v7.preference.EditTextPreference in project i2p.i2p-bote by i2p.

the class AdvancedPreferenceFragment method createHostField.

private static EditTextPreference createHostField(Context context) {
    EditTextPreference p = new SummaryEditTextPreference(context);
    p.setKey("i2pbote.i2cp.tcp.host");
    p.setTitle(R.string.pref_title_i2cp_host);
    p.setSummary("%s");
    p.setDefaultValue("internal");
    p.setEnabled(false);
    return p;
}
Also used : SummaryEditTextPreference(i2p.bote.android.config.util.SummaryEditTextPreference) EditTextPreference(android.support.v7.preference.EditTextPreference) SummaryEditTextPreference(i2p.bote.android.config.util.SummaryEditTextPreference)

Aggregations

EditTextPreference (android.support.v7.preference.EditTextPreference)11 Preference (android.support.v7.preference.Preference)10 ListPreference (android.support.v7.preference.ListPreference)8 AlertDialog (android.support.v7.app.AlertDialog)3 CheckBoxPreference (android.support.v7.preference.CheckBoxPreference)3 SwitchPreferenceCompat (android.support.v7.preference.SwitchPreferenceCompat)3 TwoStatePreference (android.support.v7.preference.TwoStatePreference)3 EditTextPreference (com.takisoft.fix.support.v7.preference.EditTextPreference)3 ConfigKey (cx.ring.model.ConfigKey)3 SummaryEditTextPreference (i2p.bote.android.config.util.SummaryEditTextPreference)3 Intent (android.content.Intent)2 SharedPreferences (android.content.SharedPreferences)2 Bundle (android.os.Bundle)2 EditTextPreference (android.preference.EditTextPreference)2 Toast (android.widget.Toast)2 EditTextIntegerPreference (cx.ring.views.EditTextIntegerPreference)2 PasswordPreference (cx.ring.views.PasswordPreference)2 File (java.io.File)2 SuppressLint (android.annotation.SuppressLint)1 Activity (android.app.Activity)1