IT. Expert System.

Android Reference

EditTextPreference


android.preference

Class EditTextPreference

    • Constructor Detail

      • EditTextPreference

        public EditTextPreference(Context context,
                          AttributeSet attrs,
                          int defStyle)
      • EditTextPreference

        public EditTextPreference(Context context)
    • Method Detail

      • setText

        public void setText(String text)
        Saves the text to the SharedPreferences.
        Parameters:
        text - The text to save
      • onBindDialogView

        protected void onBindDialogView(View view)
        Description copied from class: DialogPreference
        Binds views in the content View of the dialog to data.

        Make sure to call through to the superclass implementation.

        Overrides:
        onBindDialogView in class DialogPreference
        Parameters:
        view - The content View of the dialog, if it is custom.
      • onAddEditTextToDialogView

        protected void onAddEditTextToDialogView(View dialogView,
                                     EditText editText)
        Adds the EditText widget of this preference to the dialog's view.
        Parameters:
        dialogView - The dialog view.
      • onDialogClosed

        protected void onDialogClosed(boolean positiveResult)
        Description copied from class: DialogPreference
        Called when the dialog is dismissed and should be used to save data to the SharedPreferences.
        Overrides:
        onDialogClosed in class DialogPreference
        Parameters:
        positiveResult - Whether the positive button was clicked (true), or the negative button was clicked or the dialog was canceled (false).
      • onGetDefaultValue

        protected Object onGetDefaultValue(TypedArray a,
                               int index)
        Description copied from class: Preference
        Called when a Preference is being inflated and the default value attribute needs to be read. Since different Preference types have different value types, the subclass should get and return the default value which will be its value type.

        For example, if the value type is String, the body of the method would proxy to TypedArray.getString(int).

        Overrides:
        onGetDefaultValue in class Preference
        Parameters:
        a - The set of attributes.
        index - The index of the default value attribute.
        Returns:
        The default value of this preference type.
      • onSetInitialValue

        protected void onSetInitialValue(boolean restoreValue,
                             Object defaultValue)
        Description copied from class: Preference
        Implement this to set the initial value of the Preference.

        If restorePersistedValue is true, you should restore the Preference value from the SharedPreferences. If restorePersistedValue is false, you should set the Preference value to defaultValue that is given (and possibly store to SharedPreferences if Preference.shouldPersist() is true).

        This may not always be called. One example is if it should not persist but there is no default value given.

        Overrides:
        onSetInitialValue in class Preference
        Parameters:
        restoreValue - True to restore the persisted value; false to use the given defaultValue.
        defaultValue - The default value for this Preference. Only use this if restorePersistedValue is false.
      • shouldDisableDependents

        public boolean shouldDisableDependents()
        Description copied from class: Preference
        Checks whether this preference's dependents should currently be disabled.
        Overrides:
        shouldDisableDependents in class Preference
        Returns:
        True if the dependents should be disabled, otherwise false.
      • getEditText

        public EditText getEditText()
        Returns the EditText widget that will be shown in the dialog.
        Returns:
        The EditText widget that will be shown in the dialog.
      • needInputMethod

        protected boolean needInputMethod()
        Description copied from class: DialogPreference
        Returns whether the preference needs to display a soft input method when the dialog is displayed. Default is false. Subclasses should override this method if they need the soft input method brought up automatically.
        Overrides:
        needInputMethod in class DialogPreference


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 288 / 96286739. Delta: 0.03462 с