Search in sources :

Example 1 with SummaryEditTextPreference

use of i2p.bote.android.config.util.SummaryEditTextPreference in project i2p.i2p-bote by i2p.

the class AdvancedPreferenceFragment method createPortField.

private static EditTextPreference createPortField(Context context) {
    EditTextPreference p = new SummaryEditTextPreference(context);
    p.setKey("i2pbote.i2cp.tcp.port");
    p.setTitle(R.string.pref_title_i2cp_port);
    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)

Example 2 with SummaryEditTextPreference

use of i2p.bote.android.config.util.SummaryEditTextPreference 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)2 SummaryEditTextPreference (i2p.bote.android.config.util.SummaryEditTextPreference)2