IT. Expert System.

Android Reference

SeekBarPreference


android.preference

Class SeekBarPreference

    • Constructor Detail

      • SeekBarPreference

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

        public SeekBarPreference(Context context)
    • Method Detail

      • onBindView

        protected void onBindView(View view)
        Description copied from class: Preference
        Binds the created View to the data for this Preference.

        This is a good place to grab references to custom Views in the layout and set properties on them.

        Make sure to call through to the superclass's implementation.

        Overrides:
        onBindView in class Preference
        Parameters:
        view - The View that shows this Preference.
        See Also:
        Preference.onCreateView(ViewGroup)
      • 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.
      • 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.
      • onKey

        public boolean onKey(View v,
                    int keyCode,
                    KeyEvent event)
        Description copied from class: Preference
        Allows a Preference to intercept key events without having focus. For example, SeekBarPreference uses this to intercept +/- to adjust the progress.
        Overrides:
        onKey in class Preference
        Returns:
        True if the Preference handled the key. Returns false by default.
      • setMax

        public void setMax(int max)
      • setProgress

        public void setProgress(int progress)
      • getProgress

        public int getProgress()
      • onProgressChanged

        public void onProgressChanged(SeekBar seekBar,
                             int progress,
                             boolean fromUser)
        Description copied from interface: SeekBar.OnSeekBarChangeListener
        Notification that the progress level has changed. Clients can use the fromUser parameter to distinguish user-initiated changes from those that occurred programmatically.
        Specified by:
        onProgressChanged in interface SeekBar.OnSeekBarChangeListener
        Parameters:
        seekBar - The SeekBar whose progress has changed
        progress - The current progress level. This will be in the range 0..max where max was set by ProgressBar.setMax(int). (The default value for max is 100.)
        fromUser - True if the progress change was initiated by the user.


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: 811 / . Delta: 0.30434 с