这是我自己自定义控件的时候 常用到的函数 执行的顺序如下 构造函数 onFinishInflate setData(我们在onCreate的时候 调用自定义的方法) onAttachedToWindow onMeasure(多次) onSizeChanged onLayout(多次) onDraw