Code example for SparseIntArray

Methods: get, put

0
    } 
 
    public void addSlot(SlotView slotView) {
        slotView.setDrawingCacheEnabled(true);
        final int columnIndex = slotView.getColumn();
        int curEntries = columnArray.get(columnIndex + 1, 0);
        columnArray.put(columnIndex, ++curEntries);
        addView(slotView, 1);
    } 
 
    @Override 
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        ensureChildren(); 
 
        mRulerView.measure(widthMeasureSpec, heightMeasureSpec);
        mNowView.measure(widthMeasureSpec, heightMeasureSpec);
 
        final int width = mRulerView.getMeasuredWidth();
        final int height = mRulerView.getMeasuredHeight();
 
        setMeasuredDimension(resolveSize(width, widthMeasureSpec),