Hi all.
Just a quick question, how would i go about implementing a clock like
hand that rotates around a centre point to different positions
depending on a value.
e.g. I send it a value of 3, and it points to the 3'o'clock position
of a circle.
protected void onDraw(Canvas canvas)
{
Paint line = new Paint();
line.setStrokeWidth(3);
line.setColor(Color.BLUE);
line.setStyle(Paint.Style.STROKE);
canvas.drawLine(55, 155, 125, 15, line);
}
I have the following fully working so it draws the line, but i dont
understand how i could get one end of the line to always rotate around
the centre fixed position.
Do you have any ideas?
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en