自定义控件优化

避免在View 的onDraw方法中创建对象, 因为ondraw/onlayout 会被频繁调用

原文地址:https://www.cnblogs.com/conncui/p/4646408.html