Use onPreDrawListener instead. Add copyright sections.