change the progressspinner to canvas.rotate and add onMeasure