IT. Expert System.

Android Reference

PreferenceGroup


android.preference

Class PreferenceGroup

    • Method Detail

      • setOrderingAsAdded

        public void setOrderingAsAdded(boolean orderingAsAdded)
        Whether to order the Preference children of this group as they are added. If this is false, the ordering will follow each Preference order and default to alphabetic for those without an order.

        If this is called after preferences are added, they will not be re-ordered in the order they were added, hence call this method early on.

        Parameters:
        orderingAsAdded - Whether to order according to the order added.
        See Also:
        Preference.setOrder(int)
      • isOrderingAsAdded

        public boolean isOrderingAsAdded()
        Whether this group is ordering preferences in the order they are added.
        Returns:
        Whether this group orders based on the order the children are added.
        See Also:
        setOrderingAsAdded(boolean)
      • getPreferenceCount

        public int getPreferenceCount()
        Returns the number of children Preferences.
        Returns:
        The number of preference children in this group.
      • addPreference

        public boolean addPreference(Preference preference)
        Adds a Preference at the correct position based on the preference's order.
        Parameters:
        preference - The preference to add.
        Returns:
        Whether the preference is now in this group.
      • removePreference

        public boolean removePreference(Preference preference)
        Removes a Preference from this group.
        Parameters:
        preference - The preference to remove.
        Returns:
        Whether the preference was found and removed.
      • removeAll

        public void removeAll()
        Removes all Preferences from this group.
      • onPrepareAddPreference

        protected boolean onPrepareAddPreference(Preference preference)
        Prepares a Preference to be added to the group.
        Parameters:
        preference - The preference to add.
        Returns:
        Whether to allow adding the preference (true), or not (false).
      • findPreference

        public Preference findPreference(CharSequence key)
        Finds a Preference based on its key. If two Preference share the same key (not recommended), the first to appear will be returned (to retrieve the other preference with the same key, call this method on the first preference). If this preference has the key, it will not be returned.

        This will recursively search for the preference into children that are also PreferenceGroups.

        Parameters:
        key - The key of the preference to retrieve.
        Returns:
        The Preference with the key, or null.
      • isOnSameScreenAsChildren

        protected boolean isOnSameScreenAsChildren()
        Whether this preference group should be shown on the same screen as its contained preferences.
        Returns:
        True if the contained preferences should be shown on the same screen as this preference.
      • onPrepareForRemoval

        protected void onPrepareForRemoval()
        Description copied from class: Preference
        Called when this Preference is being removed from the hierarchy. You should remove any references to this Preference that you know about. Make sure to call through to the superclass implementation.
        Overrides:
        onPrepareForRemoval in class Preference
      • setEnabled

        public void setEnabled(boolean enabled)
        Description copied from class: Preference
        Sets whether this Preference is enabled. If disabled, it will not handle clicks.
        Overrides:
        setEnabled in class Preference
        Parameters:
        enabled - Set true to enable it.


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: 782 / . Delta: 0.02602 с