1.重写三个方法 onMeasure() ,onlayout() ,onTouchEvent() onMeasure: 对子view进行测量 onlayout:用来确定子view的位置 onTouchEvent:触摸响应事件