public class AutoSummaryEditTextPreference extends EditTextPreference
| Constructor and Description |
|---|
AutoSummaryEditTextPreference(android.content.Context context) |
AutoSummaryEditTextPreference(android.content.Context context,
android.util.AttributeSet attrs) |
AutoSummaryEditTextPreference(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr) |
AutoSummaryEditTextPreference(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.CharSequence |
getPasswordSubstitute()
Returns the substitute characters to be used for displaying passwords in the summary.
|
int |
getPasswordSubstituteLength()
Returns the length of the substitute password value in the summary.
|
java.lang.CharSequence |
getSummary()
Returns the summary of this Preference.
|
java.lang.CharSequence |
getSummaryHasText()
Returns the summary for this Preference.
|
void |
setPasswordSubstitute(int resId)
Sets the substitute characters to be used for displaying passwords in the summary.
|
void |
setPasswordSubstitute(java.lang.String passwordSubstitute)
Sets the substitute characters to be used for displaying passwords in the summary.
|
void |
setPasswordSubstituteLength(int passwordSubstituteLength)
Sets the length of the substitute password value in the summary.
|
void |
setSummary(java.lang.CharSequence summary)
Sets the summary for this Preference with a CharSequence.
|
void |
setSummaryHasText(java.lang.CharSequence summaryHasText)
Sets the summary for this Preference with a CharSequence.
|
void |
setSummaryHasText(int resId)
Sets the summary for this Preference with a resource ID.
|
getEditText, setTextpublic AutoSummaryEditTextPreference(android.content.Context context)
public AutoSummaryEditTextPreference(android.content.Context context,
android.util.AttributeSet attrs)
public AutoSummaryEditTextPreference(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr)
public AutoSummaryEditTextPreference(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes)
public java.lang.CharSequence getSummary()
pref_summaryHasText is set, this will
be displayed if no value is set; otherwise the value will be used.public void setSummary(java.lang.CharSequence summary)
pref_summaryHasText
is set, this will be displayed if no value is set; otherwise the value will be used.summary - The summary for the preference.public java.lang.CharSequence getSummaryHasText()
public void setSummaryHasText(int resId)
resId - The summary as a resource.setSummaryHasText(CharSequence)public void setSummaryHasText(java.lang.CharSequence summaryHasText)
summaryHasText - The summary for the preference.public java.lang.CharSequence getPasswordSubstitute()
public void setPasswordSubstitute(int resId)
resId - The substitute characters as a resource.setPasswordSubstitute(String)public void setPasswordSubstitute(java.lang.String passwordSubstitute)
passwordSubstitute - The substitute characters to be used for displaying passwords in
the summary.public int getPasswordSubstituteLength()
The password is subsituted with this many characters / strings supplied by
getPasswordSubstitute().
public void setPasswordSubstituteLength(int passwordSubstituteLength)
The password will be subsituted with this many characters / strings supplied by
setPasswordSubstitute(String).
passwordSubstituteLength - The length of the substitute password in the summary.
If the number equals to or is less than zero, the actual
text's length will be used.setPasswordSubstitute(int),
setPasswordSubstitute(String)