Code example for SparseIntArray

Methods: append

0
 
        /** 
         */ 
        @Override 
        protected void onPrepareAttributes(SparseIntArray attributes) {
            super.onPrepareAttributes(attributes);
 
            // Add all attributes which should be parsed for divider widget. 
            attributes.append(android.R.attr.thickness, android.R.attr.thickness);
            attributes.append(android.R.attr.orientation, android.R.attr.orientation);
        } 
 
        /** 
         */ 
        @Override 
        protected void onParseStyleElement(int attr, int index, TypedArray typedArray) {
            switch (attr) {
                case android.R.attr.thickness:
                    this.mThickness = typedArray.getDimensionPixelSize(index, mThickness);
                    break; 
                case android.R.attr.orientation: