Supressed the lint warning that measure(...) should be called instead of onMeasure(...), because we really need onMeasure(...) in this case.