Code example for SparseIntArray

Methods: size

0
     * also attributes array is valid ( 
     * <code>attrs != null && attrs.length != 0</code>), 
     * <code>false</code> otherwise. 
     */ 
    public boolean isParseable() { 
        return !(aElementAttrs == null || aElementAttrs.size() == 0 || mStyle == NO_DEFINED_RESOURCE_ID);
    } 
 
    /** 
     * <h5><i>public boolean parseStyleFromTheme(Activity activity, int 
     * styleAttr)</i></h5> 
     * <p> 
     * Parses style specific for this style (defined by given 
     * <var>styleAttr</var>) set from the given activity's theme. 
     * </p> 
     * 
     * @param activity 
     * @param styleAttr 
     * @return 
     */ 
    public boolean parseStyleFromTheme(Activity activity, int styleAttr) {