Code example for SparseIntArray

0
 
    private static final int DEFAULT_COLUMN_NUMBER = 2;
    private int mColumnNumber = 2;
    private Column[] mColumns = null;
    private Column mFixedColumn = null;
    private SparseIntArray mItems = new SparseIntArray();
    private int mColumnPaddingLeft = 0;
    private int mColumnPaddingRight = 0;
    private Rect mFrameRect = new Rect();
 
    public WaterfallView(Context context) {
        super(context);
        init(null); 
    } 
 
    public WaterfallView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init(attrs);
    } 
 
    public WaterfallView(Context context, AttributeSet attrs, int defStyle) {