IT. Expert System.

Android Reference

StateSet


android.util

Class StateSet



  • public class StateSet
    extends Object
    State sets are arrays of positive ints where each element represents the state of a View (e.g. focused, selected, visible, etc.). A View may be in one or more of those states. A state spec is an array of signed ints where each element represents a required (if positive) or an undesired (if negative) View state. Utils dealing with state sets. In theory we could encapsulate the state set and state spec arrays and not have static methods here but there is some concern about performance since these methods are called during view drawing.
    • Field Detail

      • WILD_CARD

        public static final int[] WILD_CARD
      • NOTHING

        public static final int[] NOTHING
    • Constructor Detail

      • StateSet

        public StateSet()
    • Method Detail

      • isWildCard

        public static boolean isWildCard(int[] stateSetOrSpec)
        Return whether the stateSetOrSpec is matched by all StateSets.
        Parameters:
        stateSetOrSpec - a state set or state spec.
      • stateSetMatches

        public static boolean stateSetMatches(int[] stateSpec,
                              int[] stateSet)
        Return whether the stateSet matches the desired stateSpec.
        Parameters:
        stateSpec - an array of required (if positive) or prohibited (if negative) View states.
        stateSet - an array of View states
      • stateSetMatches

        public static boolean stateSetMatches(int[] stateSpec,
                              int state)
        Return whether the state matches the desired stateSpec.
        Parameters:
        stateSpec - an array of required (if positive) or prohibited (if negative) View states.
        state - a View state
      • trimStateSet

        public static int[] trimStateSet(int[] states,
                         int newSize)
      • dump

        public static String dump(int[] states)


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: 281 / 158782594. Delta: 0.02840 с