private void init(Context context) {
        final float density = context.getResources().getDisplayMetrics().density;

        mPaints[0] = new Paint();
        mPaints[0].setColor(0xfff5d391);

        mPaints[1] = new Paint();
        mPaints[1].setColor(0xffa9e8fe);

        mPaints[2] = new Paint();
        mPaints[2].setColor(0xffe9969c);

        mPaints[3] = new Paint();
        mPaints[3].setColor(0xffb5d951);

        mTextPaint = new TextPaint();
        mTextPaint.setColor(0xff555555);
        mTextPaint.setAntiAlias(true);
        mTextPaint.setTextSize(density * 12);

        mColumnHeight = (int)(density * 20);
        mColumnPadding = (int)(density * 2);
        mSectionPadding = (int)(density * 24);
        mDividerHeight = (int)(density * 2);
        mTextPadding = (int)(density * 4);

        for (int i = 0; i < SECTION_COUNT; i++) {
            mSections[i] = new Section();
        }
    }
Hacked together barchart view for this demo. Please do not take this as an example of a good way to do things.
BenchmarkDemo/app/src/main/java/com/bluelinelabs/logansquare/demo/widget/BarChart.java