Code example for SparseIntArray

Methods: append

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