Source: my own question and aswer on StackOverflow
Question: How to show only half of a roatating wheel?
Answer:
- Simple answer for simple case we dont need to create custom imageview SOURCE.
First we would want tooverride the onDraw
method of our customized ImageView
to draw the image using an updated Matrix
on touch event. This guarantee performance as the image doesn't get redrawn everytime.